【神启黎明修复版】站长典藏推荐稀有魔幻剧情任务闯关手游-2023年4月18日最新打包Linux服务端源码视频架设教程-附带模拟真人-本地CDN-CDK授权后台-多功能GM授权后台工具!
服务器系统:centos7.6安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh安装环境
Nginx1.18
MySQL5.6
PHP5.6
PHPmyadmin4.4开放安全组:1:65535
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service上传fwd.tar.gz到服务器根目录/
解压
cd /
tar -zxvf fwd.tar.gzcd /
unzip sqlm.zip给权限
chmod -R 777 /data输入命令
echo “/data/lib” > /etc/ld.so.conf.d/lib.conf && ldconfig创建网站
域名:IP:80 指向目录/data/center/gateway/site设置数据库root密码为:123456
在宝塔-软件商店-MySQL 5.6-设置-配置修改中第26行添加 lower_case_table_names=1
重载配置
重启数据库创建并导入数据库(这个要等宝塔安装完mysql才可以操作慢慢等)
cd /data
./sk
———————————-上面执行即可 两种方式二选一
mysql -uroot -p123456create database dev_s1;
create database devb_s1;
create database dev_s2;
create database devb_s2;
create database dev_cross;
create database yx03_cn_countly;
create database yx03_cn_gateway;
create database yx03_cn_manager;use dev_s1;
set names utf8;
source /www/backup/database/dev_s1.sql;
use devb_s1;
set names utf8;
source /www/backup/database/devb_s1.sql;
use yx03_cn_countly;
set names utf8;
source /www/backup/database/yx03_cn_countly.sql;
use yx03_cn_gateway;
set names utf8;
source /www/backup/database/yx03_cn_gateway.sql;
use yx03_cn_manager;
set names utf8;
source /www/backup/database/yx03_cn_manager.sql;
use dev_s2;
set names utf8;
source /www/backup/database/dev_s2.sql;
use devb_s2;
set names utf8;
source /www/backup/database/devb_s2.sql;
use dev_cross;
set names utf8;
source /www/backup/database/dev_cross.sql;
flush privileges;
exit
——————————————————————
修改服务端IP(替换192.168.8.18为你的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/ops/bin/global_vars.sh
/data/game/script/agent_cross.sh
/data/game/script/agent_vars.sh
/data/game/script/agent1_vars.sh
/data/game/script/global_func.sh——————————————-使用以下上面无需修改 快捷方式——————————
批量替换ip命令
find /data -type f -name ‘*.sh’ | xargs sed -i ‘s/192.168.8.18/43.139.129.244/g’
find /data -type f -name ‘*.xml’ | xargs sed -i ‘s/192.168.8.18/43.139.129.244/g’
find /data -type f -name ‘*.txt’ | xargs sed -i ‘s/192.168.8.18/43.139.129.244/g’
find /data -type f -name ‘*.php’ | xargs sed -i ‘s/192.168.8.18/43.139.129.244/g’
find /data -type f -name ‘*.txt’ | xargs sed -i ‘s/43.139.129.244/43.139.129.244/g’
———————————————————————————————–此处修改
/data/center/gateway/site/dev/query.txt 43.139.129.244启动跨服区
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查看端口命令
netstat -ltnp客户端修改:
安卓:搜索43.139.129.244 注意ip位数 多减/ 少加/
路径\\assets\\AssetBundle\\luajit\\init-48c188f8220157d2a2096bace4f8a32543.139.129.244
43.139.129.244GM授权后台:http://43.139.129.244/cdn/gm/gm.php
玩家后台:http://43.139.129.244/cdn/gm/
GM码:syymw.com
1区运营后台地址:http://43.139.129.244/cdn/admin/admintool/
账号:admin 密码:123456账号前面需要加上dev_ 比如:dev_syymwcom
友情提示:如果是阿里云或者腾讯云架设 请注意端口是否开放。
========================================================
————————————————————————————
本期教程到此结束。
原文链接:https://wvvvv.abcymw.com/48073.html,转载请注明出处~~~
评论0