|
本教程适用于本站资源,其它资源不一定通用,望知悉!
0.安装CENTOS 7以上系统
1.安装宝塔 (Apache2.4 Mysql5.6 Php5.4自行宝塔里安装)
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
2.设置数据库密码为: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;
quit
导入数据库
3.上传服务端到根目录下解压并设置权限
把jzwy.zip上传到根目录并解压
解压后创建网站
指定网站目录:/www/wwwroot/xjyxi
给权限
chmod -R 777 /opt/
4.安装Java
cd /
rpm -ivh jdk-8u92-linux-x64.rpm
5.服务端IP修改
网站:/www/wwwroot/xjyxi/index.html
网站:/www/wwwroot/xjyxi/Main.max.js
网站:/www/wwwroot/xjyxi/MainGooglePlay.max.js
数据库: jgirls_test----system
数据库修改方法:把下面的区名与IP修改成你的,打开N11,点击查询,新建查询,把下面修改好的复制进去,运行。
UPDATE `jgirls_test`.`system` SET `id`='1', `data`='{\"version\":\"1.0.0.0\",\"resVersion\":\"1.0.0.0.0.0.0.0\",\"areas\":[{\"id\":100001,\"name\":\"www.xjyxi.com\",\"host\":\"192.168.200.128\",\"port\":10090,\"status\":2},{\"id\":100002,\"name\":\"小九楼论坛\",\"host\":\"192.168.200.128\",\"port\":10100,\"status\":1}],\"globalStatus\":1,\"versionStr\":\"\",\"whiteListWhenMaintenance\":\",\",\"declaration\":[{\"declarationTitle\":\"公告1\",\"declarationCotent\":\"小九楼论坛\"},{\"declarationTitle\":\"公告2\",\"declarationCotent\":\"www.xjyxi.com\"},{\"declarationTitle\":\"公告3\",\"declarationCotent\":\"访问小九楼论坛,下载更多游戏资源\"}]}' WHERE (`id`='1');
6.启动关闭
cd /opt/server/mongodb-linux-x86_64-rhel70-3.2.9 && ./start.sh
cd /opt/server/apache-tomcat-8080/bin && ./startup.sh
cd /opt/server/100001 && ./start.sh restart
cd /opt/server/100002 && ./start.sh restart(二区,开则启)
cd /opt/server/chatserver && ./start.sh
cd /opt/server/AdminNew && sh restart.sh
宝塔放行端口:8002 8080 10090 10100
运营后台地址:外网:8002
后台账号 :admin
后台密码 :admin
|
上一篇:幽冥传奇修改了上线奖励不起作用参考教程下一篇:战神引擎 聊天窗口界面广告内容修改教程
|