-bash: semanage: command not found

问题描述:-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命令测试

在这里插入图片描述
如上图所示,成功。


版权声明:本文为weixin_44105991原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。