战姬物语H5手游架设教程

战姬物语H5手游架设教程

==============================================
www.72jz.com
==============================================
测试机器:腾讯云 4H8G5M
系统: CentOS 7.2 64位
==============================================
服务器秒杀:https://www.72jz.com/thread-22847-1-1.html
==============================================

上传0.zip到根目录(/)

安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

安装 Nginx1.16、MySQL5.6、PHP5.6 PHPmyadmin

解压
cd /
unzip 0.zip

给权限
chmod -R 777 /opt

安装java
cd /72jz.com
rpm -ivh jdk-8u144-linux-x64.rpm

添加网站 IP:52 指向目录/www/wwwroot/www.72jz.com

宝塔面板修改数据库密码 jgirlstest

创建并导入数据库(替换49.233.30.138为你的IP之后再执行以下操作)
mysql -uroot -pjgirlstest
create database jgirls_test;
use jgirls_test;
set names utf8;
source /72jz.com/sql/jgirls_test.sql;
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\":\"隔壁战姬一区\",\"host\":\"49.233.30.138\",\"port\":10090,\"status\":2},{\"id\":100002,\"name\":\"72家族网战姬二区\",\"host\":\"49.233.30.138\",\"port\":10100,\"status\":1}],\"globalStatus\":1,\"versionStr\":\"\",\"whiteListWhenMaintenance\":\",\",\"declaration\":[{\"declarationTitle\":\"公告标题1\",\"declarationCotent\":\"公告内容1\"},{\"declarationTitle\":\"公告标题2\",\"declarationCotent\":\"公告内容2\"},{\"declarationTitle\":\"公告标题3\",\"declarationCotent\":\"公告内容3\"}]}' WHERE (`id`='1');
flush privileges;

exit 回车退出

修改前端IP(替换49.233.30.138为你的IP):
/www/wwwroot/www.72jz.com/index.html

启动游戏

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 && ./restart.sh

查询端口
netstat -ltnp

72家族网欢迎您,为了反馈更多的用户。本博客站点仅分享免费教程与资源。账户与论坛不互通。需另外注册。
登入/注册
与论坛账户不互通,需另外免费注册
没有账号? 忘记密码?