【大话回合逍遥西游之灵魂摆渡】角色扮演类Q萌卡通回合动作手游-2023年7月28日最新打包Linux服务端源码视频架设教程-安卓苹果IOS双端版本-GM网页后台工具!
【大话回合逍遥西游之灵魂摆渡】角色扮演类Q萌卡通回合动作手游-2023年7月28日最新打包Linux服务端源码视频架设教程-安卓苹果IOS双端版本-GM网页后台工具!

























测试系统 CentOS 7.6
教程演示虚拟机地址:123.207.42.5 外网和局域网类似
安装宝塔直接运行命令即可。
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
输入y回车确认安装
输入n取消安装SSL安装环境:
Nginx1.18
mysql5.6
php5.6宝塔放行端口:1:65535
关闭防火墙
systemctl stop firewalld
systemctl disable firewalld防火墙不关闭也行
PS:如果使用腾讯云或阿里云记得把控制台的端口也打开
上传xy.tar.gz到服务器根目录(根目录不是root目录!!使用WinSCP或其他工具上传数据,也可以直接宝塔传!!)
解压xy.tar.gz
cd /
tar zxvf xy.tar.gz给予 777权限
chmod -R 777 /home/
chmod -R 777 /etc/redis6001.conf
chmod -R 777 /www/wwwroot/game
chmod -R 755 /usr/local/mongodb/
chmod -R 755 /usr/local/bin/redis-server环境配置
编译lua
cd /home
yum -y install gcc gcc-c++yum install make -y
yum install readline-devel.x86_64 -y
cd /home/lua-5.2.3
make linuxmake install
设置数据库密码为:123456(在宝塔直接设置)
命令行输入
cd /home
./sk搭建网站
新建一个网站-你的ip:端口 或域名:端口
有端口就添加端口这里的端口81
网站目录设置\www\wwwroot\game
服务端和网站修改 123.207.42.5 修改为你的IP
服务端修改:
/home/nomogaserver/accountcenter/src/gamelogic/config/serverlists/
网站修改:
/www/wwwroot/game/xiyou/ver_test.txt
启动游戏服务
启动命令:
启动游戏:
cd /home
./qd关闭游戏:
cd /home
./gb以下是手动启动命令
/usr/local/mongodb/bin/mongod --config /usr/local/mongodb/bin/mongodb.conf &
/usr/local/bin/redis-server /etc/redis6001.conf &
cd /home/nomogaserver && ./accserver.sh start
cd /home/nomogaserver && ./payserver.sh start
cd /home/server1 && ./nomogaserver2.sh start
cd /home/server1 && ./nomogaserver1.sh start
启动命令执行完如果出现网络错误 就执行以下命令重启
cd /home/nomogaserver && ./accserver.sh restart
cd /home/nomogaserver && ./payserver.sh restart
cd /home/server1 && ./nomogaserver2.sh restart
cd /home/server1 && ./nomogaserver1.sh restart
停止游戏:
cd /home/nomogaserver && ./accserver.sh stop
cd /home/nomogaserver && ./payserver.sh stop
cd /home/server1 && ./nomogaserver2.sh stop
cd /home/server1 && ./nomogaserver1.sh stop
如果卡维护输入以下命令(就是提示游戏在维护稍后登陆)
cd /home/nomogaserver/accountcenter/logicshell && /bin/sh gm.sh banlogin 0 0
cd /home/nomogaserver/nomogaserver3/logicshell && /bin/sh gm.sh banlogin 0 3 1000启动后可以通过
端口查看命令 netstat -lntp客户端修改 (客户端默认地址123.207.42.5)
安卓:
/AndroidManifest.xml
/assets/res/script.zip--压缩包内“Update.GameUpdate”(如果是加密的就用 加密解密工具 解密后修改)苹果:
\Payload\xiyou.app\res\script.zip--压缩包内“Update.GameUpdate”这个文件拖出来解密修改 (如果是加密的就用 加密解密工具 解密后修改)GM后台:
http://IP:81/gm
PS:
1、
PS:删档
rm -rf /usr/lib64/lua
rm -rf /usr/share/lua
rm -rf /usr/share/locale/lua
rm -rf /usr/bin/luaredis-cli -p 6001 -a fanhuagame
flushall
exit
mysql -u root -p123456
truncate table sdktest.dda;
exit;
cd /usr/local/mongodb/bin/
./mongod -dbpath=/usr/local/mongodb/db -logpath=/usr/local/mongodb/logs/mongodb.log -logappend -port=27017 -fork
./mongo
show dbs
use gamelogic
db.dropDatabase()
use local
db.dropDatabase()
exit;
rm -rf /home/nomogaserver/accountcenter/log/*
rm -rf /home/nomogaserver/paycenter/log/*
rm -rf /home/server1/nomogaserver1/log/*
rm -rf /home/server1/nomogaserver2/log/*
rm -rf /home/server1/nomogaserver3/log/*
rm -rf /home/server1/nomogaserver4/log/*
rm -rf /home/server1/nomogaserver5/log/*
rm -rf /home/server1/nomogaserver6/log/*所有下载资源请自行杀毒!!!
若有网页相关的资源可使用D盾扫描木马!!!
------------------------------------------------------------------------------------
本期教程到此结束。