最低配置1H1G
系统要求centos
1.安装宝塔 (Nginx1.14 MySQL5.6 PHP5.4自行宝塔里安装)
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
2.设置数据库密码为:1974304357
mysql -u root -p1974304357
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY '1974304357' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '1974304357' WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
导入数据库
3.上传服务端到根目录下解压服务端并设置权限
web.zip自行解压到你的网站目录下
jlxz.zip放在更目录/
chmod -R 777 /jlxz/
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/jlxz/data/lib/' >> ~/.bashrc
source ~/.bashrc
4.服务端修改 192.168.99.99
/jlxz/data_yy/init.sh
网站:/gameapi/and_query.php
网站:/gameapi/ios_query.php
5.客户端修改 192.168.99.99
安卓客户端
AndroidManifest.xml
assets\data\scripts\agent\dev\agent_login_view.lua
6.首次配置,启动游戏
cd /jlxz/data_yy
./init.sh 1
以后启动和关闭
cd /jlxz/data_yy/mg1/data/publish_release
./start.sh
cd /jlxz/data_yy/mg1/data/publish_release
./stop.sh
宝塔放行1:65535
PS:
宝塔放行端口:10101 10110
自带后台:外网IP:81/ht
后台账号密码:1974304357 123456
授权后台: 外网IP:81/htgm/gm.php
玩家后台:外网IP:81/htgm
GM码 :123456
如果提示lock锁定:删除/data_yy/mg1/data/publish_release/oper.lock文件
发表评论