最近发现还是锐速加速效果明显 这里给一个自动换内核装锐速的脚本
ubuntu16.04 ubuntu14.04 测试可用(测试机包括linode aws等)
直接放一键脚本
wget xiaofd.github.io/ruisu.sh && bash ruisu.sh
注意:
安装完会自动重启 正常现象 重启后就安装好了锐速,可以使用ps aux | grep appex来检测是否运行
如果锐速没有自动安装可以使用/appex/appexinstall.sh来安装
没有任何多余的判断,非ubuntu16.04和ubuntu14.04请勿运行
锐速使用 Vicer大佬 的 moeclub.org 给出的 lotserver 一键包
ruisu.sh
#!/bin/bash
# Ubuntu/14.04/3.16.0-43-generic/x64
# Ubuntu/16.04/4.4.0-47-generic/x64
[ -n "`cat /etc/issue | grep "Ubuntu 16.04"`" ] && echo "Ubuntu 16.04" && KER_VER="4.4.0-47-generic"
[ -n "`cat /etc/issue | grep "Ubuntu 14.04"`" ] && echo "Ubuntu 14.04" && KER_VER="3.16.0-43-generic"
cp /etc/default/grub /etc/default/grub.old
sed -ir "s/GRUB_DEFAULT=.*/GRUB_DEFAULT=\"Advanced options for Ubuntu>Ubuntu, with Linux $KER_VER\"/g" /etc/default/grub
# update-grub
apt-get update
apt-get install -y linux-image-extra-$KER_VER
# reboot
mkdir -p /appex
cat > /appex/appexinstall.sh << TEMPEOF
wget --no-check-certificate -qO /tmp/appex.sh "https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh" && bash /tmp/appex.sh 'install' << EOF
EOF
cp /etc/rc.local.old.ruisu /etc/rc.local
rm /etc/rc.local.old.ruisu
TEMPEOF
# bash /appex/appexinstall.sh
# ps aux | grep appex
if [ ! -f "/etc/rc.local.old.ruisu" ]; then
echo "first time run this script, backup the rc.local"
cp /etc/rc.local /etc/rc.local.old.ruisu
fi
# cp /etc/rc.local /etc/rc.local.old.ruisu
sed -i '$d' /etc/rc.local
echo "bash /appex/appexinstall.sh" >> /etc/rc.local
echo "exit 0" >> /etc/rc.local
chmod 0755 /etc/rc.local
reboot
作者:YouR丶Beautiful
链接:https://www.jianshu.com/p/19ab389820ef