系统:Centos 7.*
配置2核 4G
-------------------------------------------------------------------------------
安装宝塔
安装
nginx-1.15
mysql-5.6 23
php5.6
-------------------------------------------------------------------------------
西游.zip上传到/ 【宝塔上传】
设置777权限,并且解压
-------------------------------------------------------------------------------
安装环境
yum -y install gcc gcc-c++
yum install make -y
yum install readline-devel.x86_64 -y
cd /home/lua-5.2.3
make linux
make install
chmod -R 777 /usr/local
chmod -R 777 /home
-------------------------------------------------------------------------------
修改路径
/home/nomogaserver/accountcenter/src/gamelogic/config/serverlists/serverlistxiyou_final_md.lua
/www/wwwroot/sdk.php
/www/wwwroot/xiyou/ver_test1.txt ver_test.txt
-------------------------------------------------------------------------------
宝塔 - 数据库 - root密码 输入 123456 提交
宝塔 - 网站 - 添加站点 输入IP 根目录/www/wwwroot/
宝塔 - 网站 - 点击IP 绑定域名
宝塔 - 安全 - 放行端口 - 添加3306
mysql -u root -p
隐藏输入 123456 回车
创建数据库
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
导入数据库
sdktest
-------------------------------------------------------------------------------
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
-------------------------------------------------------------------------------
启动游戏
/usr/local/mongodb/bin/mongod --config /usr/local/mongodb/bin/mongodb.conf &
/usr/local/bin/redis-server /etc/redis6001.conf &
cd /home/nomogaserver && ./accserver.sh start
cd /home/nomogaserver && ./payserver.sh start
cd /home/server1 && ./nomogaserver2.sh start
cd /home/server1 && ./nomogaserver1.sh start
-------------------------------------------------------------------------------
netstat -ntlp查看进程
-------------------------------------------------------------------------------
客户端修改
Update.GameUpdate.lua ip
修改完成后用加密工具 加密 会生成一个 Update.GameUpdate
将这个文件丢入 com.mh.dfxy\assets\res 目录下面的 script.zip 压缩包内
修改这里的 AndroidManifest.xml ip
然后编译 签名 苹果只需要修改Update.GameUpdate 可直接替换安卓的