文章目录
注:锐速只适合KVM机子加速,OpenVZ请使用Finalspeed,不过我还是建议购买KVM机子使用锐速吧,因为Finalspeed作者已经不再维护,两者根据情况只需要安装其中一种即可。
锐速安装
- 更换CentOS内核,方便安装锐速,强烈建议使用Centos6.X,不要用7.X
CentOS6内核更换为:2.6.32-504.3.3.el6.x86_64(第一行代码不行选择第二行):
rpm -ivh http://soft.91yun.org/ISO/Linux/CentOS/kernel/kernel-firmware-2.6.32-504.3.3.el6.noarch.rpm
rpm -ivh http://soft.91yun.org/ISO/Linux/CentOS/kernel/kernel-2.6.32-504.3.3.el6.x86_64.rpm --force
CentOS7内核更换为: 3.10.0-229.1.2.el7.x86_64:
rpm -ivh http://soft.91yun.org/ISO/Linux/CentOS/kernel/kernel-3.10.0-229.1.2.el7.x86_64.rpm --force
Ubuntu14.04更换内核为3.13.0-24-generic:
sudo apt-get install linux-image-extra-3.13.0-24-generic
dpkg -l|grep linux-image #查看现有内核
sudo apt-get purge linux-image-3.16.0-36-generic linux-image-extra-3.16.0-36-generic
(这是我ubuntu上的其他内核) #卸载列出的其他内核
sudo update-grub #更新 grub 系统引导文件
重启服务器,并查看是否更换成功:
reboot
uname -r
正式安装
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/serverspeeder/master/serverspeeder-all.sh && bash serverspeeder-all.sh
一键卸载
chattr -i /serverspeeder/etc/apx* && /serverspeeder/bin/serverSpeeder.sh uninstall -f
锐速操作指令
/serverspeeder/bin/serverSpeeder.sh start #启动锐速 /serverspeeder/bin/serverSpeeder.sh stop #停止锐速 /serverspeeder/bin/serverSpeeder.sh restart #重启锐速 /serverspeeder/bin/serverSpeeder.sh status #锐速运行状态
Finaspeed安装
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/finalspeed/master/install_fs.sh && bash install_fs.sh
一键卸载
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/finalspeed/master/install_fs.sh && bash install_fs.sh uninstall
Finalspedd操作指令:
/etc/init.d/finalspeed start #启动 /etc/init.d/finalspeed stop #停止命令 /etc/init.d/finalspeed status # 状态命令(查看日志)