yum install -y wget gcc gc bc gd make perl ncurses-devel xz
下载地址:https://www.kernel.org
#tar -Jxvf linux-3.4.56.tar.xz
#mv linux-3.4.56 /usr/src/linux-3.4.56
#cd /usr/src/linux-3.4.56

# make mrproper  #清除环境变量,即清除配置文件

# make menuconfig
根据自己的需要对Kernel进行增、减。完后按Tab键跳到下面菜单中的 < Exit > 上,回车,系统问

Do you wish to save your new configuration ?to continue.

                                < Yes >< No >

 
菜单默认在< Yes >上,按回车确认保存。

# make clean #确保所有东西均保持最新状态.

# make bzImage #生成内核文件

# make modules #编译模块

# make modules_install #安装模块

# make install #安装


编辑

#vi /etc/grub.conf 文件,将 default=1 改为 default=0

重启系统,并查看内核

# reboot

# uname -r
 
参考资料:
 

相关文章:

  • 2021-05-16
  • 2021-06-26
  • 2021-08-15
  • 2021-08-15
  • 2021-08-15
  • 2021-08-15
  • 2021-10-08
猜你喜欢
  • 2021-07-11
  • 2022-12-23
  • 2021-07-29
  • 2021-08-13
  • 2021-05-29
  • 2021-10-27
  • 2021-11-06
相关资源
相似解决方案