【长生诀】服务端+授权gm后台+安卓苹果双客户端+超详细教程

1614529426-5acdbc41ace465e1614529425-2e5c1e92b899ee91614529429-97322cf4e6155271614529428-45e9b4b1d0c5a441614529430-dd10f1ee6143aef1614529436-ae039f0b0b804fa1614529431-7e32ed6f9d49a861614529432-ca86b709f745a1b1614529433-81e5e2d81ca96031614529434-65d067876b6c9bb1614529434-ae7410d716cfa1e1614529435-2c95133944717191614529437-7acef25b6385b761614529437-5c88b8791e1c77a

架设教程:

架设需2个 服务器
centos6.8
win 2008 【验证用】 win 2008 下载 长生诀验证 打开 验证服务器 接口选择 Any 然后 启动验证
=======================================================================================================

安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
安装
Nginx 1.14 Mysql5.6 Php5.6
修改宝塔端口为9999
======================================================================================================

修改数据库密码为:qy22players
执行命令:

mysql -u root -pqy22players
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’127.0.0.1’ IDENTIFIED BY ‘qy22players’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’localhost’ IDENTIFIED BY ‘qy22players’ WITH GRANT OPTION;
FLUSH PRIVILEGES;

CREATE DATABASE IF NOT EXISTS pf_account default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS pf_active default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS pf_info default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS pf_name default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS pf_report default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS yt_account default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS yt_activity default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS yt_auction default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS yt_cfg default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS yt_common default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS yt_mail default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS yt_relation default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS yt_role default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS acc default charset latin1 COLLATE latin1_swedish_ci;
CREATE DATABASE IF NOT EXISTS admin default charset latin1 COLLATE latin1_swedish_ci;

quit
=======================================================================================================

上传yuanlei.zip到根目录
解压
cd /
unzip yuanlei.zip

给权限
chmod -R 777 /data/
chmod -R 755 /usr/local/bin/1.conf
chmod -R 777 /usr/local/bin/2.conf
chmod -R 755 /usr/local/bin/master
=======================================================================================================
创建网站 网站目录 /www/wwwroot/www.yuanlei.net
1.外网:81 添加一个域名 login.alpha.gametaiwan.com
2.域名:80 开启ssl 必须要备案域名
=======================================================================================================
修改服务端IP 【111.111.111.111】
/www/wwwroot/www.yuanlei.net/android/version.ini
/www/wwwroot/www.yuanlei.net/android/tina_svr_list.lua
/www/wwwroot/www.yuanlei.net/iosv7/version.ini
/www/wwwroot/www.yuanlei.net/iosv7/tina_svr_list.lua
/www/wwwroot/www.yuanlei.net/main/mobile/Billing.html
/www/wwwroot/www.yuanlei.net/main/mobile/login_U.html

/usr/local/bin/1.conf (修改第二个为验证服务器IP)

==============================================================================
/usr/local/bin/2.conf 修改 192.168.99.99为外网IP 修改 192.168.100.100 为内网IP(经典网络跳过)
有内网IP的服务器 (无内网的经典网络跳过)
ifconfig eth0:1 外网IP netmask 255.255.255.0
修改:/usr/local/bin/2.conf
启动 /usr/local/bin/master -c /usr/local/bin/2.conf
==============================================================================

修改数据库文件
pf_info.sql 和 yt_cfg.sql

修改 192.168.99.99为外网IP 修改 192.168.100.100 为内网IP (经典网络全改为外网IP)

修改完 上传到服务端\data\csj\sql\mysqlbak文件夹内

导入数据库
cd /data/csj/sh && ./sqldel.sh

关闭数据库二进制日志重启mysql和php服务
==============================================================================
启动
验证 /usr/local/bin/master -c /usr/local/bin/1.conf
cd /data/csj/sh
./start.sh
关闭
cd /data/csj/sh
./stop.sh
==============================================================================
授权后台地址:IP:81/gm/admin
玩家后台地址:ip:81/gm/player
管理账号密码:admin 123456
==============================================================================
客户端IP修改 【111.111.111.111】

安卓
\assets\config.ini
\assets\bin\Data\Managed\Assembly-CSharp.dll

苹果
\Payload\sdk.app\Data\Raw\config.ini
\Payload\sdk.app\Data\Metadata\global-metadata.dat 【11111111.111.111.1】

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
徐闹闹 » 【长生诀】服务端+授权gm后台+安卓苹果双客户端+超详细教程

提供最优质的资源集合

立即查看 了解详情