Apache 配置 SELinux 命令的时候的命令 semanage

提示 -bash: semanage: command not foundpython

的错误。bash

semanage-01

semanage-01719×196 23.6 KBide

这是由于你尚未安装 semanagespa

你能够 运行下面的命令进行安装 yum install policycoreutils-pythoncdn

须要注意的是,若是你运行的是 fedora 31 或者比较高的版本的话,上面的安装可能装不上去,提示包没有找到的错误。blog

你能够尝试运行:dnf install policycoreutils-python-utils 进行安装。rem

dnf install policycoreutils-python-utils-01

dnf install policycoreutils-python-utils-011643×857 246 KBget

而后你能够运行 semanage -h 查看你的 semanage 是否已经在你的系统中安装完成了。it

semanage-h

若是肯定安装完成了,你就能够开始进行设置了。class

若是你不知道你的命令在哪一个包中。

你能够使用命令进行查找。

好比说 yum provides semanage

policycoreutils-python-utils-2.9-5.fc31.noarch : SELinux policy core python utilities
Repo : fedora
Matched from:
Filename : /usr/sbin/semanage

dnf-providers-checking

针对使用 yum 和 dnf 是同样的。

相关文章
相关标签/搜索