安装CENTOS 7以上系统
安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
安装Apache 2.4 MySQL 5.6 PHP-5.4
CentOS7 防火墙配置
关闭防火墙:sudo systemctl stop firewalld.service
关闭开机启动:sudo systemctl disable firewalld.service
————————————————————————————
设置数据库密码为:123456
开放权限:
mysql -u root -p123456
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’127.0.0.1’ IDENTIFIED BY ‘123456’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’localhost’ IDENTIFIED BY ‘123456’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘123456’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
——————————————————————————
导入数据库
login.sql
————————————————————
创建网站
网站目录路径
/www/wwwroot/public
网站-设置-网站目录-防跨站攻击-取消打勾-重启
开放端口1:65535
—————————————————————————-
上传bl20166.tar.gz到根目录下解压服务端并设置权限
tar -zxvf bl20166.tar.gz
chmod -R 777 /home/rxjh/
chmod -R 777 /www/wwwroot
———————————————————
设置JAVA
rpm -ivh jdk-8u221-linux-x64.rpm
手游源码【热血江湖】新八职业Linux外网端+安卓客户端+账号本地注册+外网教程插图
修改/etc/profile文件,在最下面加入
#java
export LANG=en_US.UTF8
export JAVA_HOME=/usr/java/jdk1.8.0_221
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
点击保存, 输入 source /etc/profile
再输入命令java -version 看看服务器java版本jdk1.8.0_221
————————————————————————————-
服务端外网IP修改
/rxjh/gs/gs.cfg
网站外网IP修改
/public/dir/serverlist
———————————————————
安卓客户端IP修改
可不用反编译软件,直接将apk后缀改成zip,打开相应文件修改IP即可,修改完后后缀改回apk就行了
AndroidManifest.xml
assetsdeveloper_config.properties
smalicombhsdkbetaviewLemonGame.smali
smalicomlemongameandroidLemonGame.smali
smalicomlemongameandroidwebviewpurchaseLemonGameMobileBind.smali
smalicomlemongameandroidwebviewpurchaseLemonGameWebviewPurchase$TYWebViewClient.smali
smalicomlemongameloginauthorizationLemonGametwoConfirm$2$2.smali
smalicomlemongameloginauthorizationLemonGametwoConfirm$2$4.smali
smalicomlemongameloginauthorizationLemonGametwoConfirm.smali
smalicomunionconfigconstantLemonGameURLMessage.smali
smali目录也可以直接用N++搜索192.168.200.128 *.* 批量搜索替换即可
———————————————————–
启动命令
cd /home/rxjh
./xyh1.sh
关闭命令
cd /home/rxjh
./xyhgb.sh
评论0