使用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)
原因:有可能之前启动过的nginx影响到了,但还没有停用。
解决办法:
sudo pkill -f nginx & wait $!
sudo systemctl start nginx
running.png
Have fun.
网友评论