我的nginx服务器在我通过pkill nginx
杀死它的进程之后就不能再启动了。现在,每次我尝试sudo nginx
时,我都会得到这个错误
nginx: [emerg] open() "/usr/local/Cellar/nginx/1.12.2_1/logs/error.log" failed (2: No such file or directory)
当我导航到/usr/local/Cellar/nginx/1.12.2_1/logs
时,该目录不存在。我应该手动创建它吗?我在马科斯塞拉。
发布于 2018-02-03 21:36:41
我通过手动创建logs/error.log
文件来解决这个问题。
https://serverfault.com/questions/895572
复制