无法通过Chef启动nginx服务

无法通过Chef启动nginx服务,nginx,centos,chef-infra,chef-solo,knife-solo,Nginx,Centos,Chef Infra,Chef Solo,Knife Solo,我正在尝试使用chef solo启动nginx,但不断出现以下错误 错误 nginx.rb 正如输出所述,无法启动以下nginx服务: STDOUT: Starting nginx: [FAILED] STDERR: nginx: [emerg] open() "/home/deploy/apps/...-api/shared/log/nginx.access.log" failed (2: No such file or directory) 确保目录/home/deploy/apps/..

我正在尝试使用chef solo启动nginx,但不断出现以下错误

错误 nginx.rb
正如输出所述,无法启动以下
nginx
服务:

STDOUT: Starting nginx: [FAILED]
STDERR: nginx: [emerg] open() "/home/deploy/apps/...-api/shared/log/nginx.access.log" failed (2: No such file or directory)

确保目录
/home/deploy/apps/..-api/shared/log/
存在并且可为Nginx写入。

正如输出所述,无法启动以下
Nginx
服务:

STDOUT: Starting nginx: [FAILED]
STDERR: nginx: [emerg] open() "/home/deploy/apps/...-api/shared/log/nginx.access.log" failed (2: No such file or directory)

确保目录
/home/deploy/apps/..-api/shared/log/
存在并且可为Nginx写入。

顺便问一下,为什么烹饪书不适合您?StephenKing我使用的是CentOS,默认情况下,它会安装一个非常旧的Nginx版本。至于菜谱,我对Chef还不太熟悉,仍然沉浸在文档中。我建议使用菜谱来使用上游的nginx repo。顺便问一下,为什么菜谱不适合你?StephenKing我使用的是CentOS,默认情况下它会安装一个非常旧的nginx版本。至于菜谱,我对Chef还不太熟悉,仍然沉浸在文档中。我建议使用菜谱来使用上游nginx repo。
STDOUT: Starting nginx: [FAILED]
STDERR: nginx: [emerg] open() "/home/deploy/apps/...-api/shared/log/nginx.access.log" failed (2: No such file or directory)