1

通过使用“Easy Install”使用以下命令安装 Frappe ERPNext:

sudo python install.py --production --user frappe

我收到此错误:

TASK [frappe_selinux : Check enabled SELinux modules] *************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “semanage module -l”, “delta”: “0:00:02.254885”, “end”: “2019-03-08 10:07:33.398287”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-03-08 10:07:31.143402”, “stderr”: “libsemanage.semanage_read_policydb: Could not open kernel policy /etc/selinux/targeted/active/policy.kern for reading. (No such file or directory).\nOSError: No such file or directory”, “stderr_lines”: [“libsemanage.semanage_read_policydb: Could not open kernel policy /etc/selinux/targeted/active/policy.kern for reading. (No such file or directory).”, “OSError: No such file or directory”], “stdout”: “”, “stdout_lines”: []}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry

我正在使用 root 帐户。

我搜索了 policy.kern 文件,它甚至不存在于整个磁盘中。

请问有什么帮助吗?

4

1 回答 1

7

该文件/etc/selinux/targeted/active/policy.kern由包selinux-policy-targeted提供。尝试安装它。

yum install selinux-policy-targeted
于 2019-03-11T21:19:21.410 回答