【大话逍遥西游3之暮光西游】站长推荐经典动作回合剧情任务手游-2023年7月13日最新打包Linux服务端源码视频架设教程-完善GM后台工具!
【大话逍遥西游3之暮光西游】站长推荐经典动作回合剧情任务手游-2023年7月13日最新打包Linux服务端源码视频架设教程-完善GM后台工具!

























教程演示虚拟机地址: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上传xy.tar.gz到服务器根目录(根目录不是root目录!!使用WinSCP或其他工具上传数据,也可以直接宝塔传!!)
解压xy.tar.gz
cd /
tar zxvf xy.tar.gz给予 777权限
chmod -R 777 /home/
chmod -R 755 /usr/local/mongodb/
chmod -R 755 /usr/local/bin/3.环境配置
编译lua
yum -y install gcc gcc-c++
yum install make -y
yum install readline-devel.x86_64 -yln -s /usr/lib/libreadline.so libreadline.so
ln -s /usr/lib/libreadline.so libreadline.so.6cd /home/rj/
tar zxvf lua-5.3.4.tar.gzcd /home/rj/lua-5.3.4
make linux
make install设置数据库密码为:123456(在宝塔直接设置)
命令行输入
cd /home
./sk搭建网站
新建一个网站-你的ip:端口 或域名:端口
有端口就添加端口这里的端口81
网站目录设置\www\wwwroot\game
服务端和网站修改 123.207.42.5 修改为你的IP
服务端修改:
\home\nomogaserver\accountcenter\src\gamelogic\config\serverlists\
里面的 serverlistxiyou_in.lua ip 和区名(一共两处)网站修改:
\www\wwwroot\game\xiyou1\ver.txt
\www\wwwroot\game\xiyou2\ver.txt到此算服务端就可以了,下面看看客户端
启动游戏服务
启动游戏:
/usr/local/mongodb/bin/mongod --config /usr/local/mongodb/bin/mongodb.conf &
/usr/local/bin/redis-server /etc/redis6380.conf &
cd /home/nomogaserver && ./accserver.sh start
cd /home/nomogaserver && ./payserver.sh start
cd /home/nomogaserver && ./nomogaserver3.sh start
cd /home/nomogaserver && ./nomogaserver2.sh start
关闭
cd /home/nomogaserver && ./accserver.sh stopcd /home/nomogaserver && ./payserver.sh stop
cd /home/nomogaserver && ./nomogaserver3.sh stop
cd /home/nomogaserver && ./nomogaserver2.sh stop
启动后可以通过
端口查看命令 netstat -lntp看到 20900 和 7900 基本就没什么问题了
我们先修改客户端.
8、客户端修改 (客户端默认地址123.207.42.5)
安卓:
\assets\res\code.zip
app.netMgr_new
Update.GameUpdate
Update.UpdateMapRes
Update.UpdateRes苹果:
\Payload\wkzz_ios.app\res\code.zip
app.netMgr_new
Update.GameUpdate
Update.UpdateMapRes
Update.UpdateRes管理后台:
http://IP:81/gm
登录账号:admin
登录密码:syymw.com