【仙变3手游】跨服服务端游戏源码+架设教程+双端+后台

S116 【仙变3手游】跨服服务端游戏源码+架设教程+双端+后台
S116 【仙变3手游】跨服服务端游戏源码+架设教程+双端+后台
S116 【仙变3手游】跨服服务端游戏源码+架设教程+双端+后台
S116 【仙变3手游】跨服服务端游戏源码+架设教程+双端+后台
S116 【仙变3手游】跨服服务端游戏源码+架设教程+双端+后台
S116 【仙变3手游】跨服服务端游戏源码+架设教程+双端+后台

双区、跨服活动正常

架设教程

系统: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.16MySQL5.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/cdnhttp://服务器IP:82/admin/admintool/ 1区  账号:admin  密码:123456http://服务器IP:82/admin1/admintool/ 2区  账号:admin  密码:123456http://服务器IP:82/gm/ 授权后台  GM码:123456宝塔 - 数据库 - root密码 输入 123456 提交-----------------------------------------宝塔 - 安全 - 放行端口 - 添加3306mysql -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_s1devb_s1dev_s2devb_s2dev_crossyx03_cn_countlyyx03_cn_gatewayyx03_cn_manager-------------------------------------------------------------------------------关闭防火墙systemctl stop firewalld.servicesystemctl 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 upXX.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-------------------------------------------------------------------------------然后就可以【体验游戏】了
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。