查看: 1250|回复: 0

长生诀架设教程

[复制链接]
发表于 2019-5-24 00:00:00 | 显示全部楼层 |阅读模式
要求 CentOS 7 64


service iptables stop

chkconfig iptables off

系统安装:mysql5.6,nginx,php-fpm,php5.6:

步骤:

rpm -ivh http://repo.mysql.com/yum/mysql- ... se-el7-5.noarch.rpm

rpm -ivh http://nginx.org/packages/centos ... .el7.ngx.noarch.rpm

rpm -Uvh http://dl.fedoraproject.org/pub/ ... latest-7.noarch.rpm

rpm -Uvh http://dl.fedoraproject.org/pub/ ... ease-7-5.noarch.rpm


yum -y install mysql-community-server mysql-community-libs mysql-community-client mysql-community-devel php56 php56-php-mbstring php56-php-gd php56-php-xml php56-php-mysql php56-php-fpm nc screen wget unzip lrzsz nginx


如果忘记数据库密码:

/etc/init.d/mysql stop

mysqld_safe --user=mysql --skip-grant-tables --skip-networking &

mysql  -uroot  -p,此时不用输密码,直接按回车就可以进去。

修改数据库密码:


mysql> use mysql;

mysql> update user set password=password('qy22players') where user='root';          ('数据库密码')#修改mysql的密码为:qy22players

mysql> flush privileges;



打开数据库远程连接
cd /
mysql -uroot -pqy22players  

grant all privileges on *.* to 'root'@'%' identified by 'qy22players';

创建数据库

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 yt_log default charset latin1 COLLATE latin1_swedish_ci;

CREATE DATABASE IF NOT EXISTS acc default charset latin1 COLLATE latin1_swedish_ci;





exit;

将必须的服务设置为随系统启动:

chkconfig nginx on


chkconfig php56-php-fpm on


chkconfig mysqld on


把csj.tar.gz

解压

把csj/csj/script/crontab 内容贴到系统:
crontab -e  然后粘贴进去:wq保存。任务里是触发充值和首充的。

etc/profile内容替换系统/etc/profile

etc/nginx/rewrite   /etc/nginx/nginx.conf   /etc/nginx/conf.d/下面的文件,都复制到/etc/nginx/对应的目录下面替换相应的文件

opt/remi/php56/root/etc/php-fpm.d/www.conf 复制到/opt/remi/php56/root/etc/php-fpm.d/www.conf 替换掉

opt/remi/php56/root/etc/php.ini 复制到 /opt/remi/php56/root/etc/下替换



usr/local/bin/和usr/local/lib 的文件分别复制到/usr/local/bin和/usr/local/lib下面




在根目录 新建目录data

上传csj.tar.gz

解压

cd /data



tar xvfz csj.tar.gz



chmod -R 7777 /data



服务端修改ip:

data\csj\s1\code\cfg\back_set_common.conf    这个地方 #配置DB的IP 下面ip为127.0.0.1

data\csj\s1\code\cfg\set_common.conf   这个地方 #配置DB的IP 下面ip为127.0.0.1

data\csj\s1\code\cfg\set_common_1.conf  这个地方 #配置DB的IP 下面ip为127.0.0.1

data\csj\wwwroot\android\tina_svr_list.lua

data\csj\wwwroot\android\version.ini

data\csj\wwwroot\fa.php

data\csj\wwwroot\main\mobile\login_U.html



数据库 :yt_cfg  server_info


在本地解压csj_file.tar.gz包,上传qd  gb到root目录

重启reboot


chmod -R 7777 /data



chmod -R 7777 /root

chmod -R 7777 /usr

启动:

cd

sh qd

关闭:

cd

sh gb


客户端修改:

assets\config.ini

SvrVerUrl=http://222.187.227.189:81/android   更新路径



WindPlayChargeServer = http://222.187.227.189:81/pay/  充值路径



WindPlayFunnelServer = http://222.187.227.189:81/log.php  注册路径



WindPlayAccountServer = http://222.187.227.189:81/  服务器ip

dll修改指向:
assets\bin\Data\Managed\Assembly-CSharp.dll   搜222.187.253.120:81 unicode模式搜。就一个地方,长度不变的情况,无需修改串长码。串长码在2的最前面,



GameTaiyou.SDKData.InitURL(Boolean) : Void




TaiWanSDK..cctor()   http://103.230.242.210//main/mobile/1.php    这个需要对应位数16进制。

16进制。



修改完成即可打包生成APK.


安卓下载:
http://222.187.253.120:81/222.apk



查询充值、注册、活跃统计:
http://222.187.253.120:81/ca.html



测试发放3000元的订单元宝:
http://222.187.253.120:81/fa.php



充值奖励查询:
http://222.187.253.120:81/csj_jl.php



推广码:

http://222.187.253.120:81/tg.php

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

Archiver|手机版|小黑屋|梦网资源 ( 冀ICP备20003924号-1 )

GMT+8, 2024-12-22 16:12 , Processed in 0.085218 second(s), 30 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表
联系客服1
联系客服2