今天我虚拟机提示我满了,,,打开磁盘分析器一看,yum的更新目录满了,本地虚拟跟生产环境的版本完全一致,所以我也不打算更新,找一下命令,得先安装yum-cron ,然后再禁止更新
[[email protected] ~]# vi /etc/yum
[[email protected] yum]# yum install yum-cron -y
[[email protected] yum]# ls
fssnap.d pluginconf.d protected.d vars version-groups.conf yum-cron.conf yum-cron-hourly.conf
[[email protected] yum]# vi yum-cron.conf
开启自动更新
[[email protected] ~]# systemctl start crond
[[email protected] ~]# yum -y install cronie
[[email protected] ~]# yum -y install yum-cron
[[email protected] ~]# systemctl start yum-cron
关闭自动更新
[[email protected] ~]# gedit /etc/yum/yum-cron.conf
update_messages = no
download_updates = no
原文地址:https://www.cnblogs.com/fengxiaoyao/p/11156573.html
时间: 2024-10-07 01:22:03