问题描述:-bash: semanage: command not found
解决思路:
1. 使用yum查找提供此功能的的软件包:
[root@master ~]# yum provides semanage
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.cn99.com
base/7/x86_64/filelists_db | 7.3 MB 00:00:29
extras/7/x86_64/filelists_db | 207 kB 00:00:00
updates/7/x86_64/filelists_db | 1.4 MB 00:00:04
policycoreutils-python-2.5-33.el7.x86_64 : SELinux policy core python utilities
Repo : base
Matched from:
Filename : /usr/sbin/semanage
2. 安装policycoreutils-python软件包:
yum install policycoreutils-python -y
3. 使用semanage命令测试
如上图所示,成功。