1. yum install zlib zlib-devel
2. yum install pcre pcre-devel
3. wget http://nginx.org/download/nginx-1.8.0.tar.gz
4. tar xzvf nginx-1.8.0.tar.gz
5. ./configure --prefix=/usr/local/nginx
6. make
7. make install
8. /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf 使用nginx.conf作为配置文件
9. /usr/local/nginx/sbin/nginx -s stop 停止
/usr/local/nginx/sbin/nginx -s quit 处理完请求再退出
/usr/local/nginx/sbin/nginx -s reload 重启nginx , -c x.conf, 重新加载配置文件
/usr/local/nginx/sbin/nginx -s reopen
/usr/local/nginx/sbin/nginx -t check default setting file
/usr/local/nginx/sbin/nginx -t -c x.conf check one setting file
10. curl -v -o /dev/null http://localhost/index.html
2. yum install pcre pcre-devel
3. wget http://nginx.org/download/nginx-1.8.0.tar.gz
4. tar xzvf nginx-1.8.0.tar.gz
5. ./configure --prefix=/usr/local/nginx
6. make
7. make install
8. /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf 使用nginx.conf作为配置文件
9. /usr/local/nginx/sbin/nginx -s stop 停止
/usr/local/nginx/sbin/nginx -s quit 处理完请求再退出
/usr/local/nginx/sbin/nginx -s reload 重启nginx , -c x.conf, 重新加载配置文件
/usr/local/nginx/sbin/nginx -s reopen
/usr/local/nginx/sbin/nginx -t check default setting file
/usr/local/nginx/sbin/nginx -t -c x.conf check one setting file
10. curl -v -o /dev/null http://localhost/index.html