Nginx 错误listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use) 解决方案

技术文摘

感觉debian linux环境的软件不能随便升级,一升级,总有这个那个错误。

这不,来了个重启nginx报错  listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)

报错在nginxlog里有

udo /etc/init.d/nginx restart Restarting nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test is successful [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use) [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use) [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use) [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)

尝试,看没报错。

sudo fuser -k 80/tcp ; sudo /etc/init.d/nginx restart 

然而 好像没好利索。。。

留存,今后更新

发表评论