升级nginx到稳定版本1.14.1

 1、解压1.14.1.tar.gz
2、进入nginx-1.14.1目录
3、./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --without-http-cache --with-http_ssl_module --with-http_gzip_static_module
4、make
5、修改原nginx的运行文件(备份)
6、将nginx-1.14.1/objs/nginx  拷贝到 nginx/sbin下
7、./nginx -t 试运行  报错[www] 
8、修改nginx.conf  将user nobody注释去掉
9、再次试运行 successful
10、./nginx -v 查看版本号 确认没问题
11、kill或停止原nginx的线程
12、启动NGINX  

猜你喜欢

转载自www.cnblogs.com/zhouhao666/p/9947960.html