[root@h102 sbin]# ./nginx -t -c /usr/local/nginx/conf/nginx.conf
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
[root@h102 sbin]#
[root@h102 sbin]# kill -USR2 `cat /usr/local/nginx/logs/nginx.pid`
[root@h102 sbin]# cat /usr/local/nginx/logs/nginx.pid
5651
[root@h102 sbin]# ll /usr/local/nginx/logs/
total 16
-rw-r--r-- 1 root root 2061 Oct 9 17:07 access.log
-rw-r--r-- 1 root root 419 Oct 9 20:23 error.log
-rw-r--r-- 1 root root 5 Oct 9 20:23 nginx.pid
-rw-r--r-- 1 root root 5 Oct 9 20:01 nginx.pid.oldbin
[root@h102 sbin]# cat /usr/local/nginx/logs/nginx.pid
5651
[root@h102 sbin]# cat /usr/local/nginx/logs/nginx.pid.oldbin
5500
[root@h102 sbin]# ps faux | grep nginx
root 5659 0.0 0.0 103256 824 pts/0 S+ 20:24 0:00 \_ grep nginx
root 5500 0.0 0.0 24316 848 ? Ss 20:01 0:00 nginx: master process sbin/nginx -c conf/nginx.conf
nobody 5501 0.0 0.0 24728 1244 ? S 20:01 0:00 \_ nginx: worker process
root 5651 0.0 0.0 24316 1820 ? S 20:23 0:00 \_ nginx: master process sbin/nginx -c conf/nginx.conf
nobody 5653 0.0 0.0 24740 1252 ? S 20:23 0:00 \_ nginx: worker process
[root@h102 sbin]#
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。