Centos,iptables设置

允许访问80及8080端口 vim /etc/sysconfig/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT -A INPUT -m state --state NEW »

Install Nginx On Centos

安装依赖包 yum -y install pcre pcre-devel openssl openssl-devel gcc automake autoconf libtool make 下载nginx wget http://nginx.org/download/ng »