Game-Server
##koolshare的小宝 宝大开发的游戏系列服务器(SS),支持udp in udp和udp in tcp模式,完美支持游戏NAT2。
脚本是业余爱好,英文属于文盲,写的不好,不要笑话我,欢迎您批评指正。 安装平台:CentOS、Debian、Ubuntu。 Server
Install
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
UnInstall
./install-game-server.sh uninstall
Update
./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"
}
}