linux系统如果升级内核,会造成不可预估的问题,因此有必要禁止自动升级内核,方法如下

yum -y install yum-cron
#关闭自动更新
vi /etc/yum/yum-cron.conf
update_messages = no
download_updates = no
#启动yum-cron
systemctl start yum-cron
systemctl enable yum-cron

#忽略更新内核

cp /etc/yum.conf /etc/yum.conf.bak
vi /etc/yum.conf
exclude=kernel*
exclude=centos-release*

相关文章:

  • 2021-07-23
  • 2022-03-03
  • 2021-12-27
  • 2021-09-01
  • 2021-12-08
  • 2021-06-05
  • 2021-07-13
  • 2022-02-15
猜你喜欢
  • 2021-09-11
  • 2021-09-08
  • 2022-01-26
  • 2022-01-06
  • 2021-08-18
  • 2021-10-08
相关资源
相似解决方案