本游戏经过测试,在腾讯云完美搭建运行。二次元《苍空物语H5》详细搭建教程。
游戏截图
Linux服务端搭建教程
我测试搭建的系统为:Cent OS 7.6 64位 配置2H4G(建议使用1核2G配置起)
1.在服务器面板放通安全组(或者叫防火墙)
1-65535
2.连接SSH后安装宝塔:(中途出现 y/n : 选项,输入y 回车)
yum install -y wget && wget -O install.sh https://west2.cn/bt/install_6.0.sh && bash install.sh
3.在宝塔面板内安装以下环境:(去软件商店选择指定版本)
Nginx 1.18
php 5.6
4.关闭Linux防火墙:
systemctl stop firewalld
systemctl disable firewalld
5.上传ckwy.zip
到服务器/
根目录:
cd / && unzip ckwy.zip
6.给予服务器根目录解压后的文件777
权限:
chmod 777 -R /server
chmod 777 -R //usr/local/mongodb
chmod 777 -R /www/wwwroot/game
7.增加profile文件参数:
编辑服务器/etc/profile文件,最后行添加:
export PATH=$PATH:/usr/local/mongodb/bin
重启profile文件,立刻生效:
source /etc/profile
8.宝塔面板创建网站:
新建个网站,地址写自己的服务器IP地址,网站目录设置:/www/wwwroot/game具体如下图:
9.修改服务端IP,替换全部以下路径文件中的66.66.66.66
为你的IP
/server/bin/script/Config.lua
/www/wwwroot/game/assets/main/index.b62ee.js
10.启动服务端:
/usr/local/mongodb/bin/mongod --config /usr/local/mongodb/bin/mongodb.conf &
cd /server/bin && nohup ./logic ${SERVER} > nohup.logic.out &
游戏地址:
http://IP/
推荐浏览器无痕模式,访问即玩,嫌慢可用客户端玩。
安卓端搭建教程
使用压缩软件方式打开苍空物语H5.apk,找到以下路径,使用Notepad++打开,搜索66.66.66.66替换成自己服务器IP
assetsassetsmainindex.e0df1.js
最后用apktool 单独签个名 就完成了。
工具下载
apktool反编译工具:https://xlzyw.lanzoub.com/iIz7q17tbkwb