在这篇文章中我写了如何通过FinalSpeed进行vps加速,但是因为FinalSpeed是使用java语言进行开发的导致资源占用较高,很多低端的vps无法使用,这里我介绍一下新的加速软件kcptun,它是用go语言开发的加速软件,资源占用叫小,很多低端vps,乃至路由器都可以运行。
首先我们到这里获取现在最新的版本下载连接:https://github.com/xtaci/kcptun/releases
然后登录到了vps之后执行以下的命令:
mkdir kcptun
cd kcptun
wget https://github.com/xtaci/kcptun/releases/download/v20160811/kcptun-linux-amd64-20160811.tar.gz
tar -xvf kcptun-linux-amd64-20160811.tar.gz
然后我们接着创建一个启动文件:
touch start-kcptun
#!/bin/bash
nohup /root/kcptun/server_linux_amd64 -t 127.0.0.1:8080 -l :5540 -key 你的密码 -mode fast -parityshard $1 > /tmp/kcptun.log &
exit
接着我们继续赋予此文件可执行权限:
chmod +x start-kcptun
/xx/start-kcptun 3
下面我们介绍kcptun在客户端的使用。
首先依旧是下载最新的kcptun,然后解压,接着继续创建启动文件kcptun-client:
#!/bin/bash
nohup client_linux_amd64 -r $1:5540 -l :8880 -key 你的密码 -mode fast --parityshard $2 > /tmp/kcptun.log &
exit
/xxx/xxx/kcptun-client 你的域名或者ip 服务器启动时候的数字例如上面的3
现在ss的安卓客户端也支持了kcptun协议,现在只要你的服务器开启了kcptun你就可以在手机上享受满速网络了。
这里附上kcptun的GitHub页面,上面有很多的参数设置,大家可以去看看:https://github.com/xtaci/kcptun