文字教程
1.安装宝塔 yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh 安装nginx1.14 mysql5.5 php5.4 关闭防火墙 systemctl stop firewalld.service systemctl disable firewalld.service 数据库日志关掉,配置参数(mysqld下方)增加 lower_case_table_names=1 etc/profile 最底部添加 export PATH=$PATH:/usr/local/erl/lib/erlang/bin mysql -u root -p123456 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; FLUSH PRIVILEGES; quit
2.解包
3.安装环境 yum -y install libjson json* json-c* gperftools screen
4.修改数据库密码为123456,勿开外网,导入数据库
5.创建站点,端口88 修改文件 配置伪静态 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; 修改IP /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
6.修改客户端 安卓 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
7.启动游戏 把sy丢进bin文件里面可以直接输入 sy 1启动 2关闭 3查看端口 也可以直接输入下面指令启动游戏 启动游戏 cd /root/msTop1_s1 && ./startRawAll.sh 关闭游戏 cd /root/msTop1_s1 && ./stopRawAll.sh