1
2
3
4
5
6
7
8
9
|
[root@web01 nginx-1.0.5]
# make upgrade
/usr/local/nginx/sbin/nginx
-t
nginx: the configuration
file
/usr/local/nginx/conf/nginx
.conf syntax is ok
nginx: configuration
file
/usr/local/nginx/conf/nginx
.conf
test
is successful
kill
-USR2 `
cat
/usr/local/nginx/logs/nginx
.pid`
sleep
1
test
-f
/usr/local/nginx/logs/nginx
.pid.oldbin
make
: *** [upgrade] 错误 1
[root@web01 nginx-1.0.5]
#
|
1
2
3
4
5
6
7
|
[root@web01 sbin]
# ./nginxold
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already
in
use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already
in
use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already
in
use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already
in
use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already
in
use)
[emerg]: still could not bind()
|
1
2
3
|
[root@web01 sbin]
# pkill -int nginx
[root@web01 sbin]
# ./nginxold
[root@web01 sbin]
#
|
1
2
3
4
5
6
7
8
9
10
|
[root@web01 nginx-
1.0
.
5
]# make upgrade
/usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax
is
ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test
is
successful
kill -USR2 `cat /usr/local/nginx/logs/nginx.pid`
sleep
1
test -f /usr/local/nginx/logs/nginx.pid.oldbin
kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin`
[root@web01 nginx-
1.0
.
5
]#
[root@web01 nginx-
1.0
.
5
]#
|