启动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)。csdn上找了一圈方法试下来都不行。

解决方法:

sudo fuser -k 80/tcp
# 如果还没解决试试 sudo fuser -k 443/tcp # 感谢chrismod❤️

会跳出来一堆permission deny,但是nginx可以启动了

参考:https://easyengine.io/tutorials/nginx/troubleshooting/emerg-bind-failed-98-address-already-in-use/

你可能感兴趣的:(Linux,nginx,运维,linux)