##koolshare的小宝 宝大开发的游戏系列服务器(SS),支持udp in udp和udp in tcp模式,完美支持游戏NAT2。
wget --no-check-certificate https://github.com/clangcn/game-server/raw/master/install-game-server.sh -O ./install-game-server.sh
chmod 500 ./install-game-server.sh
./install-game-server.sh install
./install-game-server.sh uninstall
./install-game-server.sh update
Usage: /etc/init.d/game-server {start|stop|restart|status}
按照下面格式修改默认的/usr/local/game-server/config.json文件:
{
"server":"0.0.0.0",
"local_port":1080,
"timeout": 600,
"method":"chacha20",
"port_password":
{
"端口1": "密码1",
"端口2": "密码2",
"端口3": "密码3",
"端口4": "密码4",
"端口5": "密码5"
},
"_comment":
{
"端口1": "端口描述1",
"端口2": "端口描述2",
"端口3": "端口描述3",
"端口4": "端口描述4",
"端口5": "端口描述5"
}
}