双区、跨服活动正常
架设教程
系统:Centos 7.*
配置2核 4G
-------------------------------------------------------------------------------
安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
-------------------------------------------------------------------------------
安装环境
Nginx-1.16
MySQL5.6 插入 lower_case_table_names=1 保存重启数据库
PHP5.6
-------------------------------------------------------------------------------
宝塔上传文件
data.zip到主目录/
设置777权限并且解压
-----------------------------------------
创建网站 端口:81
宝塔 - 网站 - 添加站点 输入IP:81 根目录/data/game/center/gateway/site
创建WEB后台【需自行配置config】 端口:82
宝塔 - 网站 - 添加站点 输入IP:82 根目录/data/game/cdn
http://服务器IP:82/admin/admintool/ 1区 账号:admin 密码:123456
http://服务器IP:82/admin1/admintool/ 2区 账号:admin 密码:123456
http://服务器IP:82/gm/ 授权后台 GM码:123456
宝塔 - 数据库 - root密码 输入 123456 提交
-----------------------------------------
宝塔 - 安全 - 放行端口 - 添加3306
mysql -u root -p123456
-----------------------------------------
创建数据库用户
GRANT ALL PRIVILEGES ON *.* TO \\\\\\\\\\\\\\\'root\\\\\\\\\\\\\\\'@\\\\\\\\\\\\\\\'127.0.0.1\\\\\\\\\\\\\\\' IDENTIFIED BY \\\\\\\\\\\\\\\'123456\\\\\\\\\\\\\\\' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO \\\\\\\\\\\\\\\'root\\\\\\\\\\\\\\\'@\\\\\\\\\\\\\\\'localhost\\\\\\\\\\\\\\\' IDENTIFIED BY \\\\\\\\\\\\\\\'123456\\\\\\\\\\\\\\\' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO \\\\\\\\\\\\\\\'root\\\\\\\\\\\\\\\'@\\\\\\\\\\\\\\\'%\\\\\\\\\\\\\\\' IDENTIFIED BY \\\\\\\\\\\\\\\'123456\\\\\\\\\\\\\\\' WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
-----------------------------------------
导入数据库【PS:根据自己操作习惯,不同方式导入】
dev_s1
devb_s1
dev_s2
devb_s2
dev_cross
yx03_cn_countly
yx03_cn_gateway
yx03_cn_manager
-------------------------------------------------------------------------------
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
-------------------------------------------------------------------------------
服务端修改IP
/data/game/server/config/cross.xml
/data/game/server/publish_release/serverconfig.xml
/data/game/server1/config/cross.xml
/data/game/server1/publish_release/serverconfig.xml
/data/game/cross/config/cross.xml
/data/game/cross/publish_release/serverconfig.xml
-------------------------------------------------------------------------------
网站修改
/data/game/htdocs/center/gateway/site/cdn/yx03/cn/and/yx03_cn_a1/luajit/init【UE修改,位数不符,域名替代】
/data/game/htdocs/center/gateway/site/cdn/yx03/cn/ios/yx03_cn_a1/lua/init【UE修改,位数不符,域名替代】
/data/game/htdocs/center/gateway/site/cdn/yx03/cn/ios/yx03_cn_a1/lua/game/setting【UE修改,位数不符,域名替代】
/data/game/htdocs/center/gateway/site/dev/az1.txt【没有,复制一个】
/data/game/htdocs/center/gateway/site/dev/az.txt
-------------------------------------------------------------------------------
安装环境
echo \\\\\\\\\\\\\\\"include ld.so.conf.d/*.conf
/data/lib
\\\\\\\\\\\\\\\" > /etc/ld.so.conf && ldconfig
-------------------------------------------------------------------------------
设置权限
chmod -R 777 /data
-------------------------------------------------------------------------------
虚拟网卡【PS:只针对内网的云服务器需要的命令】
ifconfig eth0:0 XX.XX.XX.XX netmask 255.255.255.0 up
XX.XX.XX.XX【改为公网IP】
-------------------------------------------------------------------------------
启动跨服区
cd /data/game/
./cross_start.sh
启动1区
cd /data/game/
./server_start.sh
启动2区 不开可以不用启动
cd /data/game/
./server1_start.sh
关闭跨服区
cd /data/game/
./cross_stop.sh
关闭1区
cd /data/game/
./server_stop.sh
关闭2区
cd /data/game/
./server1_stop.sh
-------------------------------------------------------------------------------
安卓客户端【改之理少月增强版】【PS:UE修改,位数不符,域名替代】
com.ys.dw\\\\\\\\\\\\\\\\assets\\\\\\\\\\\\\\\\AssetBundle\\\\\\\\\\\\\\\\luajit\\\\\\\\\\\\\\\\init-48270f7995779a74548b6bb9d05fe52e
苹果客户端
\\\\\\\\\\\\\\\\Payload\\\\\\\\\\\\\\\\dev.app\\\\\\\\\\\\\\\\Data\\\\\\\\\\\\\\\\Raw\\\\\\\\\\\\\\\\AssetBundle\\\\\\\\\\\\\\\\lua\\\\\\\\\\\\\\\\init-3c9f719e7d9142a7043a247c490d9899
\\\\\\\\\\\\\\\\Payload\\\\\\\\\\\\\\\\dev.app\\\\\\\\\\\\\\\\Data\\\\\\\\\\\\\\\\Raw\\\\\\\\\\\\\\\\AssetBundle\\\\\\\\\\\\\\\\lua\\\\\\\\\\\\\\\\game\\\\\\\\\\\\\\\\setting-9d40443952511dc95c03f4078669cdfb
-------------------------------------------------------------------------------
查看端口
netstat -ltnp
-------------------------------------------------------------------------------
然后就可以【体验游戏】了
温馨提示:
- 请注意,下载的资源可能包含广告宣传。本站不对此提供任何担保,请用户自行甄别。
- 任何资源严禁网盘中解压缩,一经发现删除会员资格封禁IP,感谢配合。
- 压缩格式:支持 Zip、7z、Rar 等常见格式。请注意,下载后部分资源可能需要更改扩展名才能成功解压。
声明:
- 本站用户禁止分享任何违反国家法律规定的相关影像资料。
- 内容来源于网络,如若本站内容侵犯了原著者的合法权益,可联系我们进行处理,联系微信:a-000000