Nginx: Job for nginx.service failed because the control process exited

前端 未结 19 1075
予麋鹿
予麋鹿 2021-01-29 19:31

I got a problem which I have been trying to fix for a few days now and I don\'t know what to do, have been looking for answers but all of those I found didn\'t help me.

19条回答
  •  孤街浪徒
    2021-01-29 19:58

    When something cannot bind to a port, it's 5% because it's not started by root (sticky suid bit, sudo) and 94% because another application is already bound to that port.

    Make sure nginx is really shutdown and you don't try to start it twice by accident.

    Make sure you don't have Apache or other services running that use port 80.

    Utilize netstat -a | grep tcp to find out more.

提交回复
热议问题