#!/bin/bash # 1 # 关闭 centos 自动更新 # 修改yum配置文件/etc/yum.conf # 在[main]字段中添加exclude=kernel*、exclude=centos-release*