Centos 7.3 semanage 使用报错,版本不匹配

系统环境:Centos 7.3
报错出现情景:启动 MySQL 5.7.24 时,status 中报错 loacalhost.localdomain python[58869]: deteched unhandled Python execption in '/usr/sbin/semanage'

然后尝试运行 /usr/sbin/semanage 出现报错 ERROR: policydb version 31 does not match my version range 15-30

进行如下两步操作即可:

[root@localhost sbin]# yum provides semanage 
Loaded plugins: fastestmirror, langpacks
epel/x86_64/filelists_db                                                                                                               |  12 MB  00:00:05     
policycoreutils-python-2.5-34.el7.x86_64 : SELinux policy core python utilities
Repo        : base
Matched from:
Filename    : /usr/sbin/semanage



policycoreutils-python-2.5-8.el7.x86_64 : SELinux policy core python utilities
Repo        : @anaconda
Matched from:
Filename    : /sbin/semanage



policycoreutils-python-2.5-8.el7.x86_64 : SELinux policy core python utilities
Repo        : @anaconda
Matched from:
Filename    : /usr/sbin/semanage



[root@localhost sbin]# 
[root@localhost sbin]# 
[root@localhost sbin]# yum -y install policycoreutils-python.x86_64

参考自:https://my.oschina.net/u/931071/blog/3023721

你可能感兴趣的:(运维)