rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum install nginx -y
service nginx start
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
service iptables save
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum install nginx -y
service nginx start
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
service iptables save
转载于:https://www.cnblogs.com/tugeler/p/6622406.html