手游源码【情缘大话西游】linux手工外网服务端+游戏后台+外网教程
手游源码【情缘大话西游】linux手工外网服务端+游戏后台+外网教程
0.安装CENTOS 7以上系统
1.安装宝塔 (Nginx-1.16 Mysql5.6 Php5.6 Redis 5.0自行宝塔里安装)(Php安装redis扩展)
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
2.设置数据库密码为:gudanboke
mysql -u root -pgudanboke
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’127.0.0.1’ IDENTIFIED BY ‘gudanboke’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’localhost’ IDENTIFIED BY ‘gudanboke’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
导入数据库
3.上传服务端到根目录下解压并设置权限
web.tar.gz自行解压到你的网站目录下!
tar -zxvf qyxy.tar.gz
chmod -R 777 /qyxy/
4.服务端IP修改 192.168.99.99
/qyxy/xy2_bin/configLocal/service.js
网站:看分区IP里的说明修改
5.客户端IP修改 192.168.99.99
参照客户端修改加密里的说明修改即可!IP验证工具我也提供了!
安卓:
assets\lua\First.lua
assets\lua\GameUtils.lua
assets\lua\indexpanel.lua
assets\lua\UI\serverPanel.lua
苹果:
Payload\shishendahuaxiyou.app\Data\Raw\lua\First.lua
Payload\shishendahuaxiyou.app\Data\Raw\lua\GameUtils.lua
Payload\shishendahuaxiyou.app\Data\Raw\lua\indexpanel.lua
Payload\shishendahuaxiyou.app\Data\Raw\lua\UI\serverPanel.lua
6.启动关闭
启动:
cd /qyxy/xy2_bin/shell
nohup ./GameServer startService.js >> /qyxy/data/log/$(date +%Y-%m-%d-%H-%M-%S).log 2>&1 &
关闭:
killall -9 GameServer
PS:
宝塔放行端口:4001 8005
后台地址:外网:8005/admin
后台账号:gudanba
后台密码:123456
游戏注册邀请码:默认GuDan 可以数据库或者后台自行修改!
11资源网 » 手游源码【情缘大话西游】linux手工外网服务端+游戏后台+外网教程