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

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

    In my case, nginx was not able to open the log file which is located here /var/log/nginx/error.log

    This was because I had deleted the log directory to free up space in root (which turned out to be stupid)

    I then created a log folder in var and an nginx folder in log.

    Then simply run sudo service nginx start

    0 讨论(0)
提交回复
热议问题