阿里云云盾报警提示内核问题, 需要紧急升级。
RHSA-2017:1615: kernel security and bug fix
怎么做?
说明
软件:2.6.32-696.28.1.el6
命中:kernel version less than 0:2.6.32-754.3.5.el6
路径:/boot/.vmlinuz-2.6.32-696.28.1.el6.x86_64.hmac
软件:2.6.32-696.28.1.el6
命中:kernel-firmware version less than 0:2.6.32-754.3.5.el6
路径:/lib/firmware/3com
软件:2.6.32-696.28.1.el6
命中:kernel-headers version less than 0:2.6.32-754.3.5.el6
路径:/usr/include/asm
修复命令/修复方法:
yum update kernel
yum update kernel-firmware
yum update kernel-headers
但是出现另外一个问题就是 yum不能用, 这个是因为我们server存在2个以上Python导致的, 只需要修改yum的Python版本即可, 详细看下文
我们在公司的集群环境想要使用yum命令进行安装一些组件,报错No module named yum。
完整报错信息如下:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It’s possible that the above module doesn’t match the
current version of Python, which is:
2.7.11 (default, Jun 14 2016, 14:13:45)
[GCC 4.8.4]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
查看python版本
whereis python
查找yum文件,并编辑此py文件
which yum
输出为/usr/bin/yum
vi /usr/bin/yum
修改Python版本为你的版本即可。 可能为 python2.6或者2.7 根据你的server来修改即可