##感谢kcptun提供这么优秀的软件 kcptun是kcp协议的一个简单应用,可以用于任意tcp网络程序的传输承载,以提高网络流畅度,降低掉线情况。 ##感谢koolshare的小宝 宝大提醒配置的方法。
wget --no-check-certificate https://github.com/clangcn/kcp-server/raw/master/install-kcp-server.sh -O ./install-kcp-server.sh
chmod 500 ./install-kcp-server.sh
./install-kcp-server.sh install
./install-kcp-server.sh uninstall
./install-kcp-server.sh update
Usage: /etc/init.d/kcp-server {start|stop|restart|status}
{
"server":"0.0.0.0",
"socks5_port":9081,
"redir_port":0,
"tuncrypt":0,
"sndwnd":128,
"rcvwnd":1024,
"mtu":1400,
"mode":"fast",
{
"端口1": "密码1",
"端口2": "密码2",
"端口3": "密码3",
"端口4": "密码4",
"端口5": "密码5"
},
"_comment":
{
"端口1": "端口描述1",
"端口2": "端口描述2",
"端口3": "端口描述3",
"端口4": "端口描述4",
"端口5": "端口描述5"
}
}
{
"server":"你服务器IP地址",
"server_port":服务器端口,
"password":"端口对应的密码",
"socks5_port":1080,
"redir_port":0,
"tuncrypt":0,
"sndwnd":128,
"rcvwnd":1024,
"mtu":1400,
"mode":"fast"
}