installation steps
1. Add Nginx source address
CentOS7 default does not provide Nginx source, but provides their own Nginx
1 Sudo rpm Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
2. Install Nginx
1 yum -y install nginx # If the user logs do not root, beginning to add sudo
3. Start Nginx
1 systemctl start nginx.service
2 systemctl enable nginx.service
4. Turn off the firewall
1 # nginx
2 systemctl STOP firewalld // turn off the firewall
3 systemctl // disable firewalld prohibit boot
5. Try to log
Enter ip interface you can see the nginx, nginx is the default port 80