Centos6.5 nginx 安装配置
wget http://nginx.org/download/nginx-1.11.6.tar.gz
tar -zxvf nginx-1.11.6.tar.gz
mv nginx-1.11.6.tar.gz /usr/local/nginx-1.11.6
cd /usr/local/nginx-1.11.6
./configuer
make install
cd /usr/local/nginx/sbin
./nginx (启动)
./nginx -s stop (停止)
./nginx -s reopen (重启)
./nginx -h (可以查看命令的帮助信息)
curl http://localhost 是html代码表示成功