夜夜夜爽_日本老头与少妇作爱_欧美性高清肥妇喷潮_丰满放荡的寡妇精品一区二区 - 成人免费午夜视频69影院

易秋網絡旗下全球VPS測評站
云主機測評/獨立服務器測評/主機優惠碼

如何讓centos7關閉yum自動更新系統

客戶指定機器的系統要centos 7.6,易秋網絡老易這邊提供的實際也是centos 7.6,但是等客戶安裝完畢寶塔后,系統顯示是centos 7.7,但是客戶因為某些原因,就是要centos 7.6,易秋網絡老易猜測是安裝寶塔的過程中,centos 7.6自動更新到centos 7.7了。

[root@1403-sxx yum]#  cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

那如何禁用centos 7的yum自動更新系統呢,百度了一下,還是能解決這個centos7自動更新系統的問題的。

cd /etc/yum
yum install yum-cron -y
[root@1403-s67 yum]# ls
fssnap.d  pluginconf.d  protected.d  vars  version-groups.conf  yum-cron.conf  yum-cron-hourly.conf

編輯下文件yum-cron.conf,把2個地方的yes,改成no,
update_messages = no
download_updates = no

[commands]
#  What kind of update to use:
# default                            = yum upgrade
# security                           = yum --security upgrade
# security-severity:Critical         = yum --sec-severity=Critical upgrade
# minimal                            = yum --bugfix update-minimal
# minimal-security                   = yum --security update-minimal
# minimal-security-severity:Critical =  --sec-severity=Critical update-minimal
update_cmd = default

# Whether a message should be emitted when updates are available,
# were downloaded, or applied.
update_messages = no  [這個地方默認是yes,改成no]

# Whether updates should be downloaded when they are available.
download_updates = no [這個地方默認是yes,改成no]

然后寶塔安裝完畢后,再看看,系統還是centos7.6,這次系統沒有自動更新成centos 7.7

贊(0) 打賞
版權歸求VPS所有,未經允許不準轉載!求VPS » 如何讓centos7關閉yum自動更新系統
【聲明】:求VPS,易秋網絡旗下專業VPS測評站,主要側重篩選全球質量比較好的VPS、云主機以及獨立服務器,并且進行簡單測評,僅供參考。因為全國網絡差異較大,求VPS的VPS以及獨立服務器測評數據僅對當時的測評環境有效。求VPS不強制網友購買本站介紹的VPS以及獨立服務器資源,如果網友購買了本站介紹的資源,風險自擔!

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

微信掃一掃打賞