升级内核

#!bin/sh
sed -i '/exclude=kernel/{s/.*/exclude=centos-release*/}' /etc/yum.conf
tee /etc/yum.repos.d/kernel.repo <<-'EOF'
[kernel]
name=kernel Repository
baseurl=http://ucloud.mirror.ucloud.cn/centos/6/$basearch
gpgcheck=0
enabled=1
EOF
yum clean all && yum makecache

yum list | grep ucloud

yum install -y kernel-4.1.0 kernel-devel-4.1.0 kernel-headers-4.1.0 perf-4.1.0 python-perf-4.1.0

 我这边主机用的是Ucloud的云主机

posted @ 2017-07-21 11:45  BigBao的博客  阅读(304)  评论(0编辑  收藏  举报