看到微軟開源、相容、豁達,很高興,今天研究一下Docker,檢視Ubuntu核心版本,發現2.3有點低,不符合目前版本。
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiIn5GcuUTM0kTOyIzN0MjM3ETOx8CX1ATNxAjMvwFM0ITOy8CX1EDMyc2bsJ2Lc12bj5ycn9Gbi52YuAzcldWYtl2Lc9CX6MHc0RHaiojIsJye.png)
最低核心版本要求3.10。
更新Ubuntu核心。
首先
下載下傳核心 網站https://www.kernel.org/
複制下載下傳位址https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.14.43.tar.xz
你可以任意選擇适合你的版本。
在Linux中/usr/src/kernels/ 下
#wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.14.43.tar.xz
下載下傳完成後解壓縮
# tar -xJvf linux-3.14.43.tar.xz
ok,安裝安裝包 gcc和ncurses-devel
# yum -y install gcc ncurses-devel
然後切換目錄到/usr/src/kernels/linux-3.16.1
#make help
help中包含menuconfig
執行 menuconfig指令 出現圖形
#make menuconfig
選擇save
回車
OK回車
回車退出
繼續執行
#make
如果有錯誤比如
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
make[3]: `arch/x86/realmode/rm/realmode.bin' is up to date.
BC kernel/timeconst.h
/bin/sh: bc: command not found
make[1]: *** [kernel/timeconst.h] Error 127
make: *** [kernel] Error 2
是因為未安裝成功BC
#yum -y install bc
安裝完後,執行
編譯kernel,生成子產品檔案。等待很長時間
完成後執行make all 生成核心檔案 和 子產品檔案
#make all
執行 make modules_install 安裝子產品
#make install
重新開機
#shutdown -r 0
選擇新的kernel啟動
檢視目前kernel,
#uname -r
喜歡技術、熱愛生活。