平滑升级Nginx至0.8.19

This item was filled under [ Web Server ]

1.

wget http://sysoev.ru/nginx/nginx-0.8.19.tar.gz  

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
Tagged with: [ ]
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Comment on “平滑升级Nginx至0.8.19”

  • Mike
    31 三月, 2010, 19:56

    网络营销, 创业机会, 有兴趣联系我! 谢谢!

Leave a Comment