nginx: [emerg] bind() to 0.0.0.0

2020-11-19  本文已影响0人  悟饭哪

使用systemctl start nginx启动nginx失败,

Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.

使用systemctl status nginx查询时,看到错误:nginx: [emerg] bind() to 0.0.0.0:8081 failed (98: Address already in use)

already in use.png
原因:有可能之前启动过的nginx影响到了,但还没有停用。
解决办法:
sudo pkill -f nginx & wait $!
sudo systemctl start nginx
running.png

Have fun.

上一篇 下一篇

猜你喜欢

热点阅读