





























服务器系统:Centos7.6
1、安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
2、安装环境
Nginx1.18
php5.4 (安装好之后删除exec函数重启php)
mysql5.6
3、开放端口1:65535
4、关闭防护墙
systemctl stop firewalld.service
systemctl disable firewalld.service
5、上传mhxy.zip 到服务器根目录
解压服务端
cd /
unzip mhxy.zip
6、给权限
chmod -R 7777 /bin/qd
chmod -R 7777 /home
chmod -R 7777 /www/wwwroot
7.设置数据库密码:123456
创建数据库并导入/直接全部复制粘贴就行
cd /
mysql -uroot -p123456
grant all privileges on *.* to ‘root’@’127.0.0.1’ identified by ‘123456’;
grant all privileges on *.* to ‘root’@’localhost’ identified by ‘123456’;
create database mt91 DEFAULT CHARACTER SET utf8;
flush privileges; #
use mt91
source /mt91.sql
继续创建并导入
create database Zx_Agent DEFAULT CHARACTER SET utf8;
flush privileges; #
use Zx_Agent
source /Zx_Agent.sql
exit;
8、建立网站比如IP:88
IP带上88端口
路径/www/wwwroot/3w
127.0.0.1:81
路径/www/wwwroot/mhxy1
9、安装java, Xshell里执行以下命令,命令需要一条一条的输入,跑完一个再输一个
cd /home
rpm -ivh jdk-8u144-linux-x64.rpm
tar zxvf log4cpp-1.1.3.tar.gz
cd log4cpp
./configure
make
make install
yum install -y gcc-c++ log4cpp
ln -s /usr/lib64/liblog4cpp.so.4 /usr/lib64/liblog4cpp.so.5 这条命令如果报错可不管它
10、修改ip
\home\mt3\sdk_server\sdk.config.xml 修改成自己的IP
\www\wwwroot\3w\serverccz\indexh.html 修改成自己的IP 与客户端匹配
\www\wwwroot\mhxy1\user\reg.php 修改成自己的IP
11、启动命令
qd
1
服务端 到这里已经搭建完毕了
安卓修改【改之理】或者其他编译工具
AndroidManifest.xml
\lib\armeabi-v7a\libgame.so 搜getRecruitSuccess()
需要ip一样位数,如果ip位数不一样可以改文件名
61.164.109.144:88/serverccz/indexh.html
43.154.102.30:88/serverccz/indexhx.html
苹果修改根目录 mt3
注册地址:http://IP:81/user/reg.php
代理后台:http://IP:81/daili/gm.php
GM码:syymw.com
GM后台:http://IP:81/suiyue/gm/gm.php
GM码:syymw.com
GM后台:http://IP:81/suiyue/ht2021/gm2022.php
GM码:syymw.com
管理后台:http://IP:81/admin2021
账号:admin
密码:admin
友情提示:如果是阿里云或者腾讯云架设 请注意端口是否开放。