啥也没写
分类: LINUX
2009-09-29 11:08:09
最近报nginx有BUG,所以想升级一下NGINX,2009/09/14号的0.8.15,修复了
UV#180065漏洞,具体看
wget
tar -zxvf nginx-0.8.15.tar.gz
cd nginx-0.8.15
./configure
make
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
cp objs/nginx /usr/local/nginx/sbin/
/usr/local/nginx/sbin/nginx -t
#让nginx把nginx.pid改成nginx.pid.oldbin,重新运行nginx
kill -USR2 `cat /usr/local/nginx/logs/nginx.pid`
#退出旧的nginx
kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin`
[root@zjw02 nginx-0.8.15]# curl -I 192.168.32.130
HTTP/1.1 200 OK
Server: nginx/0.8.15
Date: Tue, 29 Sep 2009 02:57:09 GMT
Content-Type: text/html
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.10
Set-Cookie: RVd_sid=ak8ek6; expires=Tue, 06-Oct-2009 02:57:09 GMT; path=/
升级完成!