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

前端 未结 19 1125
予麋鹿
予麋鹿 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:00

    Try to debug with command:

    $ service nginx configtest
    

    Which outputs something like:

    Testing nginx configuration: nginx: [emerg] unknown directive "stub_status" in /etc/nginx/sites-enabled/nginx_status:11
    nginx: configuration file /etc/nginx/nginx.conf test failed
    

    And fix those warnings

    Then restart nginx

提交回复
热议问题