发表于 2018-11-12 11:54:59

【Nginx】进程管理初步了解

# 可以看到 80 端口依然开启  # kill -WINCH 16129
  # netstat -antp | grep nginx
  tcp      0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      16129/nginx.conf
  # ps -ef | grep nginx | grep -v grep
  root   16129   10 22:47 ?      00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
  #
  # 可以看到 worker 进程又被启动了
  # kill -HUP 16129
  # ps -ef | grep nginx | grep -v grep
  root   16129   10 22:47 ?      00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
  nobody   16321 161290 22:57 ?      00:00:00 nginx: worker process
  nobody   16322 161290 22:57 ?      00:00:00 nginx: worker process
  nobody   16323 161290 22:57 ?      00:00:00 nginx: worker process
  nobody   16324 161290 22:57 ?      00:00:00 nginx: worker process
  #

页: [1]
查看完整版本: 【Nginx】进程管理初步了解