サーバ再起動したらnginxでwebサーバが立ち上がらなかった話

そんな話です。

[astail@astail ~]$ sudo service nginx status nginx は停止しています [astail@astail ~]$ sudo service nginx start nginx を起動中: nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] still could not bind() [失敗] [astail@astail ~]$ sudo lsof -i:80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME nginx 2307 root 6u IPv4 12857 0t0 TCP :http (LISTEN) nginx 2309 nginx 6u IPv4 12857 0t0 TCP :http (LISTEN)

[astail@astail ~]$ sudo su - root [root@astail ~]# kill 2307 [root@astail ~]# lsof -i:80 [root@astail ~]# service nginx start
nginx を起動中: nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored [ OK ] [root@astail ~]# service nginx status nginx (pid 12240) を実行中...

なぜこうなったし