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

前端 未结 19 1422
予麋鹿
予麋鹿 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 20:17

    change the port may help as 80 port is already using somewhere

    vi /etc/nginx/sites-available/default
    

    Change the port:

    listen 8080 default_server;
    listen [::]:8080 default_server;
    

    And then restart the nginx server

    nginx -t
    service nginx restart
    

提交回复
热议问题