逍遥西游3【逍遥仙境】手工外网端+运营后台
0.安装CENTOS 7以上系统
1.安装宝塔 (Nginx1.16 Mysql5.6 Php5.6自行宝塔里安装)PHP安装好后-软件管理-PHP5.6设置-禁用函数-删除exec
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
2.设置数据库密码:
mysql -u root -pbl20166.com
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY 'bl20166.com' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'bl20166.com' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'bl20166.com' WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
宝塔-安全-放行端口1:65535
导入数据库
3.宝塔-添加站点-端口81-根目录/www/wwwroot/
把bl20166.tar.gz上传到根目录
cd /
tar -zxvf bl20166.tar.gz
chmod -R 777 /home/
chmod -R 777 /usr/local/mongodb/
chmod -R 777 /usr/local/bin/redis-server
chmod -R 777 /www/wwwroot/
4.服务端IP修改
/home/nomogaserver/accountcenter/src/gamelogic/config/serverlists/serverlistxiyou_in.lua
5.客户端IP修改
安卓:
修改【IP文件】目录下的4个文件 分别覆盖到assetsrescodes.zip 和 assetsresscript.zip 里
苹果:
修改【IP文件】目录下的4个文件 分别覆盖到Payloadwkzz_ios.apprescodes.zip 和 Payloadwkzz_ios.appresscript.zip 里
6.启动关闭
启动:
/usr/local/mongodb/bin/mongod --config /usr/local/mongodb/bin/mongodb.conf &
/usr/local/bin/redis-server /etc/redis6379.conf &
cd /home/nomogaserver
./serverStart.sh start
关闭:
cd /home/nomogaserver
./serverStop.sh stop
PS:
宝塔放行端口:4767 9031
后台地址:外网:81
后台账号:bl20166
后台密码:123456