1, the source added
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
2, install Nginx
To see if the source has been added successfully yum search nginx. If successful, execute the following command to install Nginx.
yum install -y nginx
3, start Nginx and set to start automatically
systemctl start nginx.service
systemctl enable nginx.service
4. Browse to see the effect
在浏览器中输入您的服务器地址,即可看到nginx的欢迎界面