如何修改CentOS6,CentOS7内核支持安装锐速的内核

如何修改CentOS6,CentOS7内核支持安装锐速的内核,第1张

在锐速ServerSpeeder无限带宽破解版Linux一键自动安装包文章中介绍了如何使用一键包安装锐速,优化服务器网络速度。其实要想在自己的VPS安装锐速,首先内核必须要匹配锐速版本。如果内核不支持安装锐速,我们需要手动修改内核为支持安装锐速版本,不过OpenVZ虚拟技术架设的VPS是无法是无法更换内核,另外并不是所有的XEN和KVM虚拟技术架设的VPS都支持更换内核,像Linode VPS就不支持以下方法修改,需在VPS管理页面修改(Linode VPS如何在管理页面更换内核)。

需要有linux系统:

1、至少有两个分区,否则存放centos.iso的分区无法格式化,假设有/dev/sda1为根分区/dev/sda3为/opt分区

2、将centos.iso存放在/opt/centos.iso

3、mount -o loop /opt/centos.iso /mnt

4、复制引导文件

cp /mnt/isolinux/vmlinuz /boot/vmlinuz-ins

cp /mnt/isolinux/initrd.img /boot/initrd-ins

5、修改引导文件

vi /boot/grub/menu.lst

复制原来的默认引导4行,例如

title CentOS (2.6.18-400.1.1.el5)

root (hd0,0)

kernel /boot/vmlinuz-2.6.18-400.1.1.el5 ro root=LABEL=/ rhgb quiet

initrd /boot/initrd-2.6.18-400.1.1.el5.img

title CentOS (2.6.18-400.1.1.el5)

root (hd0,0)

kernel /boot/vmlinuz-2.6.18-400.1.1.el5 ro root=LABEL=/ rhgb quiet

initrd /boot/initrd-2.6.18-400.1.1.el5.img

6、修改为

title CentOS install

root (hd0,0)

kernel /boot/vmlinuz-ins ro root=LABEL=/ rhgb quiet

initrd /boot/initrd-ins

title CentOS (2.6.18-400.1.1.el5)

root (hd0,0)

kernel /boot/vmlinuz-2.6.18-400.1.1.el5 ro root=LABEL=/ rhgb quiet

initrd /boot/initrd-2.6.18-400.1.1.el5.img

7、重启主机就会进入安装步骤了

8、选择从硬盘安装,指定iso存放位置/dev/sda3,剩下的就和光盘安装一样一样的了


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/7617892.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-07
下一篇2023-04-07

发表评论

登录后才能评论

评论列表(0条)

    保存