logo资料库

好多人问我如何架设H5牛牛,这里写个详细教程给大家.docx

第1页 / 共5页
第2页 / 共5页
第3页 / 共5页
第4页 / 共5页
第5页 / 共5页
资料共5页,全文预览结束
首先需要服务器系统 linux(centos7.2) 然后安装宝塔控制面板 安装宝塔命令: yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
编译安装需要 45 分钟 放行端口:[1-10000] 放行端口:[888] 放行端口:[39000-40000] 放行端口:[22] 放行端口:[8888] 放行端口:[80] 把源码传到根目录 把根目录的数据库文件导入到数据库 打开根目录 data/conf/db.php 更改数据库信息 'DB_TYPE' => 'mysql', 'DB_HOST' => '127.0.0.1', 'DB_NAME' => '数据库名', 'DB_USER' => '数据库用户', 'DB_PWD' => '数据库密码', 然后连接你的服务器执行启动游戏命令
[root@localhost ~]# cd /www/wwwroot/你网站的根目录文件/auto/ [root@localhost auto]# ll (查看该目录文件) -r-xr-xr-x 1 root root 24 Feb 19 00:19 1.sh -r-xr-xr-x 1 root root 32 Feb 10 13:52 2.sh -r-xr-xr-x 1 root root 32 Feb 10 13:52 close-all.sh -r-xr-xr-x 1 root root 194744 Feb 10 13:52 fly.so drwxr-xr-x 21 www www 8192 Apr 20 15:24 php54n -r-xr-xr-x 1 root root 3401 Feb 10 13:52 php-beast.log -r-xr-xr-x 1 root root 44 Feb 10 13:52 readme.txt -r-xr-xr-x 1 root root 1100 Feb 10 13:52 run-new.sh -r-xr-xr-x 1 root root 746 Apr 14 02:44 run.sh -r-xr-xr-x 1 root root 5382 Feb 10 13:52 server.php -r-xr-xr-x 1 root root 10 Feb 10 13:52 start-all.sh -r-xr-xr-x 1 root root 732 Apr 14 02:44 stop.sh 你会看到这些文件 然后启动游戏文件命令 # sh start-all.sh
然后打开网站后台 这样游戏就算完全启动了 接下来就是公众号设置了
然后在你公众号里的安全设置里把服务器的 IP 加白名单 公众号设置里的网页授权填写你的域名 这就不再截图了,大功告成了
分享到:
收藏