经过一次
service nginx stop
我检查了端口80:
ps ax | grep nginx
898 ? Ss 0:00 runsv nginx
943 ? S 0:00 svlogd -tt /var/log/gitlab/nginx
4063 pts/0 S+ 0:00 grep --color=auto nginx
29681 ? Ss 0:00 nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx
29682 ? S 0:00 nginx: worker process
29683 ? S 0:00 nginx: worker process
29684 ? S 0:00 nginx: worker process
29685 ? S 0:00 nginx: worker process
29686 ? S 0:00 nginx: worker process
29687 ? S 0:00 nginx: worker process
29688 ? S 0:00 nginx: worker process
29689 ? S 0:00 nginx: worker process
29690 ? S 0:00 nginx: worker process
29691 ? S 0:00 nginx: worker process
29692 ? S 0:00 nginx: worker process
29693 ? S 0:00 nginx: worker process
29694 ? S 0:00 nginx: worker process
29695 ? S 0:00 nginx: worker process
29696 ? S 0:00 nginx: worker process
29697 ? S 0:00 nginx: worker process
29698 ? S 0:00 nginx: cache manager process然后我杀死了所有这些过程
kill -9 29681 29682 29683 29684 29685 29686 29687 29688 29689 29690 29691 29692 29693 29694 29695 29696 29697 29698
它还在那里吗?
ps ax | grep nginx:
9074 ? Ss 0:00 nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx
9105 ? S 0:00 nginx: worker process
9107 ? S 0:00 nginx: worker process
9108 ? S 0:00 nginx: worker process
9109 ? S 0:00 nginx: worker process
9110 ? S 0:00 nginx: worker process
9111 ? S 0:00 nginx: worker process
9112 ? S 0:00 nginx: worker process
9113 ? S 0:00 nginx: worker process
9114 ? S 0:00 nginx: worker process
9115 ? S 0:00 nginx: worker process
9116 ? S 0:00 nginx: worker process
9117 ? S 0:00 nginx: worker process
9118 ? S 0:00 nginx: worker process
9119 ? S 0:00 nginx: worker process
9120 ? S 0:00 nginx: worker process
9121 ? S 0:00 nginx: worker process
9122 ? S 0:00 nginx: cache manager process
9123 ? S 0:00 nginx: cache loader process
9297 pts/0 R+ 0:00 grep --color=auto nginx:怎么做和为什么?这使它与我试图跟踪的错误非常混淆-- nginx阻塞了自己,还是什么?:D。
发布于 2019-08-17 20:20:01
您自己的流程列表应该告诉您发生了什么:
nginx: master process /opt/gitlab/embedded/sbin/nginx看看上面写着嵌入的nginx。
因此,当您运行service nginx stop时,请停止系统nginx。
由gitlab运行的nginx是另一个您必须单独处理的。同样,如果您不想使用Gitlab的嵌入式nginx,则需要对其进行解包。
https://unix.stackexchange.com/questions/536058
复制相似问题