2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Nginx:[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)

Posted at

私はNginxをインストールして、起動すると、下記のエラーメッセージが出てきました。

[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)

Nginxを停止しても、sudo lsof -i:80ですると、nginxは動いてるみたいです。

下記のコマンドで80のプロセスを全部殺す

sudo fuser -k 80/tcp

再度起動すると、無地に起動できました。
service nginx start

トラブル再発のため、簡単にメモしました。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?