升級(jí)系統(tǒng)內(nèi)核,提升性能
1、輸入用戶名、密碼登入系統(tǒng),使用wget命令獲取所需要的內(nèi)核。

2、下載文件到本地后,解壓文件


3、移動(dòng)文件到相關(guān)目錄,并切換到相關(guān)目錄


4、配置內(nèi)核參數(shù),選擇自己需要的模塊;

5、編譯安裝內(nèi)核:
復(fù)制內(nèi)容到剪貼板
- [root@localhost linux-2.6.32.70]# make[root@localhost linux-2.6.32.70]# make modules[root@localhost linux-2.6.32.70]# make modules_install[root@localhost linux-2.6.32.70]# make install
6、修改相關(guān)配置文件,以新的內(nèi)核啟動(dòng);主要更改defanlt=0一行。

7、將新內(nèi)核配置文件復(fù)制到/boot目錄下,重啟,驗(yàn)證內(nèi)核版本。
復(fù)制內(nèi)容到剪貼板
- [root@localhost linux-2.6.32.70]# cp /usr/src/linux-2.6.32.71/.config /boot/config-2.6.32.70
-
- [root@localhost linux-2.6.32.70]# reboot
-
- [root@localhost linux-2.6.32.70]# uname -r
注意事項(xiàng):
1、配置內(nèi)核(make menuconfig )參數(shù)時(shí),注意加載所有的硬盤驅(qū)動(dòng)模塊;
2、執(zhí)行完make menuconfig后,修改/usr/src/linux-2.6.32.71/.config,將#CONFI_SYSFS_DEPRECATED_V2 is not set一項(xiàng)改為CONFIG_SYSFS_DEPRECATED_V2=y,然后編譯內(nèi)核
相關(guān)推薦:
centos7怎么取消鎖屏?centos系統(tǒng)取消自動(dòng)鎖屏的教程
新安裝的Centos 7系統(tǒng)怎么將網(wǎng)卡名稱改為eth0?
CentOS 6.7系統(tǒng)中給IP配置的兩種教程