目前大家比较认可的搬瓦工网络优化方案分别是锐速及google BBR,其中Google BBR默认添加到系统版本,我们使用的时候选择带_BBR后缀的系统即可。这里有一点需要注意,由于锐速与BBR要求的linux 内核版本不一样,所以两者不能共存,只能选择其中一种使用。所以本文同时介绍2种方法,供大家测试使用,并选择最终稳定的优化方案。
第一 安装锐速
这里需要注意的是如果选择使用锐速,系统就需要重新安装,并且系统就不能选择后缀带-bbr的系统,如centos-6-x86_64-bbr(这是错误的选择)。 重装步骤为登录KiwiVM先 stop 当前系统,再 Install new OS为不带bbr后缀的系统,比如debian-7-x86_64(这是正确的选择)。目前搬瓦工更新了centos 6 和centos7系统内核,不匹配锐速,需要先更换内核再安装锐速。
重装为debian 7 64系统请按照图示上序号正确操作。
1.1 更换内核(centos-6-x86必做)
centos 系统只要不带bbr都可以直接运行安装锐速 ,单如果选择的是centos-6-x86系统,则需要额外运行下面命令。其他centos系统无需操作,直接使用 1.2 锐速安装配置即可。
- yum install wget net–tools –y && wget —no–check–certificate https://raw.githubusercontent.com/bakuniverse/back/master/huanneihe.sh && bash huanneihe.sh
debian ubutun 系统运行
- apt–get update –y
1.2 锐速安装配置
安装锐速
centos需要额外运行这个命令。debian或者ubutun不需要,要不会出现
-bash: wget: command not found及I can not find the server pubilc Ethernet! 这两个错误。
- yum install wget net–tools –y
wget --no-check-certificate -O appex.sh https://raw.githubusercontent.com/bakuniverse/serverSpeeder_Install/master/appex.sh && chmod +x appex.sh && bash appex.sh install
然后我们按照图片的数据指示,一路回车就可以了。 安装完锐速记得要重启服务器一次即 reboot。
如以后想卸载锐速,运行这个命令
- wget —no–check–certificate –O appex.sh https://raw.githubusercontent.com/bakuniverse/serverSpeeder_Install/master/appex.sh && chmod +x appex.sh && bash appex.sh uninstall
一键安装包(需配合putty或者xshell使用,不会的可以参考:putty与xshell及winscp初级使用方法)
- wget —no–check–certificate https:
Debian 9及Unbuntu 锐速安装流程
Debian9/Unbuntu 需要首先更换内核 (运行后需重启reboot):
- bash <(wget —no–check–certificate –qO– ‘https://moeclub.org/attachment/LinuxShell/Debian_Kernel.sh’)
安装lotServer(锐速)
- bash <(wget —no–check–certificate –qO– https://github.com/MoeClub/lotServer/raw/master/Install.sh) install
卸载lotServer(锐速)
- bash <(wget —no–check–certificate –qO– https://github.com/MoeClub/lotServer/raw/master/Install.sh) uninstall
锐速命令使用方法:
启动命令 /appex/bin/lotServer.sh start
停止加速 /appex/bin/lotServer.sh stop
状态查询 /appex/bin/lotServer.sh status
重新启动 /appex/bin/lotServer.sh restart
现在打开你的浏览器试试速度吧,有图为证。
第二 安装谷歌BBR
2017.3.23 搬瓦工太贴心了,你会在系统重装发现搬瓦工KVM自带安装好BBR的centos系统。我们只要选择我们需要的BBR版本使用即可默认开启BBR。