平滑升级Nginx至0.8.19
Posted by 侯延鹏 on 11 十月, 2009
1 comment so far
This item was filled under [ Web Server ]
1.
2.
tar zxvf nginx-0.8.19.tar.gz
3.
cd nginx-0.8.19
4.
./configure –user=www –group=www –prefix=/usr/local/nginx/ –with-http_stub_status_module –with-http_ssl_module
5.
make
6.#平滑升级可执行程序,使用新的 nginx 可执行程序替换旧的
kill -USR2 `cat /usr/local/nginx/logs/nginx.pid`
7.#旧进程停止工作
kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin`
8.Nginx升级成功
[root@HPY003 logs]# curl -I http://localhost
HTTP/1.1 200 OK
Server: nginx/0.8.19
Date: Sun, 11 Oct 2009 13:43:31 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.6
Popularity: 838 views
One Comment on “平滑升级Nginx至0.8.19”
网络营销, 创业机会, 有兴趣联系我! 谢谢!