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.