【阿拉德之怒情怀之星空阿拉德全中文配套表】站长推荐经典3D横版格斗闯关剧情任务手游-2023年11月12日最新打包Linux服务端源码视频架设教程-GM总运营WEB管理后台-新版多功能GM授权后台-安卓苹果IOS双端版本!
【阿拉德之怒情怀之星空阿拉德全中文配套表】站长推荐经典3D横版格斗闯关剧情任务手游-2023年11月12日最新打包Linux服务端源码视频架设教程-GM总运营WEB管理后台-新版多功能GM授权后台-安卓苹果IOS双端版本!






























演示环境:
centos 7.6组队 PK需要放行UDP端口(在服务器控制面板,安全组里面放行。不是在宝塔放行)
安全组放行规则
TCP:1-65535
UDP:1-65535安装宝塔直接运行命令即可。
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
输入y回车确认安装
安装环境
nginx1.20
MySQL5.6
PHP7.1(安装sg11和Redis扩展)
PM2管理器1、宝塔放行端口:1:65535
或单独打开 自行抓包
关闭防火墙
systemctl stop firewalld
systemctl disable firewalld防火墙不关闭也行
PS:如果使用腾讯云或阿里云记得把控制台的端口也打开
2、上传ald.tar.gz到服务器根目录(根目录不是root目录!!使用WinSCP或其他工具上传数据,也可以直接宝塔传!!)
解压ald.tar.gz
cd /
tar zxvf ald.tar.gz给予 777权限
chmod -R 777 /root/
chmod -R 777 /www/wwwroot/3.环境配置
添加libmysqlclient.so软链接
ln -s /www/server/mysql/lib/libmysqlclient.so /usr/lib64/libmysqlclient.so
ldconfig安装gcc5.2环境
cd /root
wget --no-check-certificate https://copr.fedoraproject.org/coprs/hhorak/devtoolset-4-rebuild-bootstrap/repo/epel-6/hhorak-devtoolset-4-rebuild-bootstrap-epel-6.repo -O /etc/yum.repos.d/devtoolset-4.repo上面是一条命令!!!全部复制粘贴!
yum install compat-libgmp-4.3.1-1.sl7.x86_64.rpm -y
yum install compat-libmpfr-2.4.1-1.sl7.x86_64.rpm -y
yum install devtoolset-4-gcc devtoolset-4-gcc-c++ devtoolset-4-binutils -y
scl enable devtoolset-4 bash
修改root目录的.bashrc文件,添加如下内容:
source /opt/rh/devtoolset-4/enable4、设置数据库密码为:syymw.com(在宝塔直接设置,修改后点下 从服务器获取看看改成功没!提示数据库密码错误就在改一次,直到能获取到0个)
先修改配置吧!
修改数据库配置文件 为 “数据库配置.txt” 内的内容
重启数据库
修改数据库 搜索:123.207.42.5
\root\sql\ald_web.sql
命令行输入
cd /root
./sk数据库创建结束。可以通过宝塔查看是否创建成功。(数据库 - 点击 从服务器获取 获取到11个就正确的)
运行后为了安全可以把 sk 文件删除
5、搭建网站
新建一个网站-你的ip:端口 或域名:端口
有端口就添加端口这里的端口:81 (你也可以用其他的端口,不过就需要对应客户端都改)
网站目录设置/www/wwwroot/game
运行目录 /public
设置伪静态 thinkPHP
关闭防跨站
重启PHP6、服务端和网站修改 123.207.42.5 修改为你的IP
服务端修改:
/root/platform/Config/UdpServer.xml
/root/platform/CenterServer/CenterServer.cfg
/root/platform/RelayServer/RelayServer.cfg
/root/platform/RelayServer1/RelayServer.cfg
/root/platform/UdpConnServer/UdpConnServer.cfg
/root/platform/UdpConnServer1/UdpConnServer.cfg/root/s1/AdminServer/AdminServer.cfg
/root/s1/AdminServer/NetAddress.xml
/root/s1/Config/UdpServer.xml到此算服务端就可以了
7、启动游戏服务
宝塔配置PM2管理器
启动文件
/www/wwwroot/gmald/src/app.jsPS:PM2添加项目出错解决方法
更换Node版本为v16以上游戏总是掉线的解决办法:
PM2添加的项目内存 加大8、启动游戏
启动platform服务
cd /root/platform
./run.sh启动一区
cd /root/s1
./run.sh关闭游戏
关闭platform服务
cd /root/platform
./stop.sh关闭一区
cd /root/s1
./stop.sh启动后可以通过
端口查看命令 netstat -lntp9、客户端修改
安卓:替换:123.207.42.5
/assets/updateserver.json
/assets/bin/Data/Managed/Assembly-CSharp.dll 【MAID_ADDRESS字段 不懂修改的见图解】苹果 搜 :81 注意对位 不够的 后加/
\Payload\test.app\Data\Raw\updateserver.json
\Payload\test.app\Data\Managed\Metadata\global-metadata.dat注册账号
邀请码:syymwcom外部注册链接:http://IP:81/game/Login/GL?dl=syymwcom
运营后台:
http://ip:81/admin/Login.html
账号:syymwcom
密码:dac123GM授权物品后台:
http://IP:81/gmht/gm.php
GM码:syymw.com玩家后台:
http://IP:81/gmhtPS:
手动名望榜刷新:
http://自己服务器IP:81/mw_rank/index/update?key=MW-RANK-1228689277
在电脑浏览器输入这个地址即可刷新战力排行榜 也可添加宝塔计划宝塔计划开启名望榜每日自动刷新,在宝塔面板中,新建计划任务:
脚本内容:curl http://自己服务器IP:81/mw_rank/index/update?key=MW-RANK-1228689277
执行周期设置为每天0小时5分执行【时间可以自己定】所有下载资源请自行杀毒!!!
若有网页相关的资源可使用D盾扫描木马!!!