nginxは停止してもポートをブロックします。

nginxは停止してもポートをブロックします。

〜の後

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:

どうやってなぜ?これは私が受け取っているエラーを追跡しようとしているエラーのために非常に混乱しますbind() to 0.0.0.0:80 failed (98: Address already in use)。 nginxはそれ自体をブロックしていますか? :D

ベストアンサー1

あなたのプロセスのリストは何が起こっているのか教えてくれます。

nginx: master process /opt/gitlab/embedded/sbin/nginx

埋め込みnginxと書かれた場所を見てください。

したがって、このコマンドを実行するときにservice nginx stopシステムnginxを停止してください。

gitlabが実行するnginxは、別々に処理する必要があるもう1つです。たとえば、Gitlabの組み込みnginxを使用したくない場合は、次のものが必要です。噴射するそれ。

おすすめ記事