Chef 测试显示 nginx 已启用并正在运行服务 --status-all 根本不显示

Chef 测试显示 nginx 已启用并正在运行服务 --status-all 根本不显示

我正在尝试运行厨师验证测试,测试显示 nginx 已启用并使用以下代码运行:

describe service('nginx') do
  it { should be_enabled }
  it { should be_running }
end

但它不会显示在/etc/nginx目录中。除了我的测试和我在食谱中放置的配置文件之外,我在任何地方都找不到任何提及 nginx 的内容。嗯,这本食谱是同事给我的。

相关内容