当前位置: > CentOS > CentOS入门 >

centos 7.2开启和关闭自动更新

时间:2017-07-11 23:45来源:linux.it.net.cn 作者:IT

[root@localhost ~]# vi /etc/yum

 

[root@localhost yum]# yum install yum-cron -y

 

[root@localhost yum]# ls

fssnap.d  pluginconf.d  protected.d  vars  version-groups.conf  yum-cron.conf  yum-cron-hourly.conf

[root@localhost yum]# vi yum-cron.conf

 

 

开启自动更新

[root@localhost ~]# systemctl start crond

 

[root@localhost ~]# yum -y install cronie

[root@localhost ~]# yum -y install yum-cron

[root@localhost ~]# systemctl start yum-cron

 

关闭自动更新

[root@localhost ~]# gedit /etc/yum/yum-cron.conf

update_messages = no

download_updates = no

(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容