centos6.x下安装nginx服务器的方法,yum方式安装nginx centos6.x下安装nginx,步骤:
获取nginx的yum源,ssh下执行:
wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
执行rpm文件:
rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum安装nginx一路选择y: yum install nginx
默认安装下的路径说明
注意:
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
再次查:看iptables status, |