无缝 升级Nginx 0.8.35 到 0.8.40

最近80sec爆出了nginx有个危险的漏洞,看到这篇后已经是六月了,幸亏我管理的只是公司内部的主站,而且必须通过VPN才可以访问,不过,还是升级了保险。

如何安装nginx,请查看http://blog.s135.com/nginx_php_v6

下面是升级的方法。

# wget http://nginx.org/download/nginx-0.8.40.tar.gz 

# tar zvxf nginx-0.8.40.tar.gz 

# /usr/local/webserver/nginx/sbin/nginx -V 
 nginx version: nginx/0.8.35 
TLS SNI support disabled 
configure arguments: --user=www --group=www --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module

# cd nginx-0.8.40 

#./configure --user=www --group=www --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --pid-path=/usr/local/webserver/nginx/nginx.pid 

#make

#mv /usr/local/webserver/nginx/sbin/nginx /usr/local/webserver/nginx/sbin/nginx.old

#cp objs/nginx /usr/local/webserver/nginx/sbin/

#make upgrade

原文地址:https://www.cnblogs.com/fangbo/p/1756906.html