我需要以某种方式在高山linux上安装服务包,以便我的测试正确运行。测试是使用testinfra模块编写的。我的测试在ubuntu和centos上运行良好,但在阿尔卑斯山上不起作用。
import testinfra
def test_nginx_running_and_enabled(host):
nginx = host.service('nginx')
assert nginx.is_running
assert nginx.is_enabled我得到一个错误

发布于 2021-04-16 16:02:52
apk add --no-cache openrc
rc-service nginx statushttps://stackoverflow.com/questions/67120254
复制相似问题