1.安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
安装nginx1.14 mysql5.5 php5.4
关闭防火墙
service iptables stop
chkconfig iptables off
数据库配置参数(mysqld下方)增加lower_case_table_names=1 记得重载配置和重启数据库
数据库开放端口 修改数据库密码为123456,导入数据库后记得关闭外网权限
mysql -uroot -p123456
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘buzhidao123456’ WITH GRANT OPTION;
flush privileges;
quit
2.安装环境
yum -y install libjson json* json-c* gperftools screen
3.上传syzl.tar.gz到服务器根目录 别在宝塔解压 用下面命令去解压
cd / && tar -zxvf syzl.tar.gz
5.创建站点 目录wwwroot,配置伪静态
rewrite /sdk/user/register /sdk/register.php;
rewrite /sdk/user/fast_reg /sdk/fast_reg.php;
rewrite /sdk/user/logout /sdk/logout.php;
rewrite /sdk/user/login /sdk/login.php;
rewrite /sdk/user/sign_get /sdk/sign_get.php;
修改文件
/root/msTop1/msTop1_s1/srvconf.xml(连接mysql的IP不要修改,其他全改)
/www/wwwroot/common/GetServerList.php
/www/wwwroot/common/announcement.php
/www/wwwroot/3d_kbjy/normal_top1/update/res/Android/1.0.1/1016/downinfo1000_1016.xml
ldconfig
chmod -R 777 /www
chmod -R 777 /root
7.修改客户端
安卓
com.top1game.rotdgp\smali\com\top1game\rotdgp\MainActivity.smali
com.top1game.rotdgp\smali\com\top1game\togame\config\TOGameSDKURLConfig.smali
com.top1game.rotdgp\smali\com\top1game\togame\ui\TOGameSDKLogin.smali
com.top1game.rotdgp\smali\com\top1game\togame\ui\TOGameSDKLoginAll.smali
com.top1game.rotdgp\smali\com\top1game\togame\ui\TOGameSDKRegister.smali
com.top1game.rotdgp\assets\ConfigData\ClientSettingCfg.csv
IOS
Payload\demo.app\Frameworks\Top1gameSDK.framework\Top1gameSDK
demo.app\Data\Raw\ConfigData\ClientSettingCfg.csv
8.启动游戏
cd /root/msTop1_s1 && ./startRawAll.sh
cd /root/msTop1_s1 && ./stopRawAll.sh