
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,剩下的就和光盘安装一样一样的了
BBR在大部分的时间都是比较好用的。但是偶尔也会在某些机器,某些线路上面的效果不明显。
这里就给大家推荐某大佬修改的一键脚本,集成了BBR原版/魔改/plus+锐速的四合一脚本。项目开源地址: https://github.com/cx9208/Linux-NetSpeed
脚本安装命令:
在vultr上Centos 7, Debian 8/9, Ubuntu 16/18测试通过,不支持ovz虚拟方式的vps
google cloud实机也测试通过。
如果提示证书错误的话
1.先选择1-3在切换内核(第一次显示为bbr内核也要切换一遍),重启
出现这个选no
“1. 安装 BBR/BBR魔改版内核”对应4,5,6(原版,魔改,暴力魔改)
“2. 安装 BBRplus版内核 ”对应7(plus)
“3. 安装 Lotserver(锐速)内核”对应8(锐速)
现在你可以自由的切换你想要的加速,直到你不想折腾为止~
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)