Home > Backend Development > PHP Tutorial > centos7 yum method to install nginx centos7.2 centos 7.0 centos 6.7

centos7 yum method to install nginx centos7.2 centos 7.0 centos 6.7

WBOY
Release: 2016-07-29 08:48:42
Original
1387 people have browsed it

There is no nginx rpm package in the centos7 system library by default, so we need to update the rpm dependency library first

(1) Using yum to install nginx requires including the Nginx library and installing the Nginx library

#rpm - Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

(2) Use the following command to install nginx

#yum install nginx

(3) Start Nginx

#service nginx start

or

#systemctl start nginx.service

The above introduces centos7 yum method to install nginx, including centos7 content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template