步驟1:載入公鑰
步驟2:安裝elrepo
步驟3:載入elrepo-kernel元資料
步驟4:檢視可用的rpm包
步驟5:安裝最新版本的kernel
yum --disablerepo=* --enablerepo=elrepo-kernel install -y kernel-ml.x86_64
步驟6:重啟並檢查
reboot
步驟:7:刪除舊版本工具包
步驟8:安裝新版本工具包
#檢視預設啟動順序
awk -f』 『$1=="menuentry " 』 /etc/grub2.cfg
centos linux (4.4.183-1.el7.elrepo.x86_64) 7 (core)
centos linux (3.10.0-327.10.1.el7.x86_64) 7 (core)
centos linux (0-rescue-c52097a1078c403da03b8eddeac5080b) 7 (core)
#預設啟動的順序是從0開始,新核心是從頭插入(目前位置在0,而4.4.4的是在1),所以需要選擇0。
grub2-set-default 0
#重啟並檢查
reboot
參考該文章:
centos7公升級核心
檢視當前系統核心版本 uname r 匯入elpepo倉庫公共金鑰 rpm import如有報錯資訊 curl 35 peer reports incompatible or unsupported protocol version 先執行 yum update y nss curl libcurl...
Centos7公升級linux核心的方法
因為安裝docker需要linux的核心版本不低於3.18,所以需要把centos7的linux核心公升級,完全參考centos7公升級核心到3.18的方法,實際上公升級到了5.11。具體步驟如下 更新前,檢視核心版本 uname r 匯入key rpm import 安裝elrepo的yum源 r...
centos7公升級pip版本
但是pip沒有設定的話,其實使用的指向還是python2的 那麼我們要公升級pip的話首先要把pip指向python 進入usr bin目錄 cd usr bin 檢視pip字首的檔案 ll pip 刪除pip檔案 rm pip 重新設定pip檔案 ln s usr local python3 bi...