centos6中安装nginx1.9.3
安装说明 系统环境:CentOS-6.3 软件:nginx-1.9.3.tar.gz 安装方式:源码编译安装 安装位置:/usr/local/nginx 下载地址:http://nginx.org/en/download.html 安装依赖 yum install gcc-c++ yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel 下载nginx-1.9.3.tar.gz wget http://nginx.org/download/nginx-1.9.3.tar.gz 安装 find -name nginx yum remove nginx cd /usr/local/src tar -zxvf nginx-1.9.3.tar.gz -C .. cd /usr/local/nginx-1.9.3 ./configure --prefix=/usr/local/nginx make make install 配置防火墙 vi /etc/sysconfig/iptables #添加配置 -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT 重启防火墙 service iptables restart 启动与测试 /usr