长安幻想 Linux 架设教程
演示系统:CentOS 7.6
安装宝塔直接运行命令即可。
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
输入y回车确认安装
————————————————————————–
搭建环境
MySQL 5.7
PHP7.2
nginx1.20.4
安装redis 7.4.2
—————————————————————————
关闭防火墙、开放端口 或 宝塔放行端口:1:65535
systemctl stop firewalld
systemctl disable firewalld
—————————————————————————–
使用WinSCP或使用宝塔文件上传功能将文件上传文件到系统根目录(/)
对压缩包进行解压
tar -zxvf /cahx.zip
——————————————————————————
配置数据库
端口:3306
密码:123456
导入数据库
cd /cahx_data && ./sk
——————————————————————————-
重启nginx
sudo /www/server/nginx/sbin/nginx -s reload
——————————————————————————-
启动游戏服务
cd /cahx_data && ./run.sh
关闭游戏服务
cd /cahx_data && ./stop.sh
——————————————————————————-
修改服务端
1. 打开文件/caxh_data/LoginServer/json/version.json
替换为自己的IP
“server_list_path”: “http://117.72.94.142:89/index.php/server/lists”,
“download_apk_path”: “http://117.72.94.142:89/packages”,
“cdn_path”: “http://117.72.94.142/cahx.dist”,
“cdn_ip_path”: “http://117.72.94.142/cahx.dist”,
“theone_cdn_path”: “http://117.72.94.142/cahx.sy”,
“theone_cdn_ip_path”: “http://117.72.94.142/cahx.sy”,
——————————————————————————-
修改客户端
1.修改第一个url
打开文件assets/shiyue_channel_config.properties
替换为自己的IP
SHIYUE_SERVER_URL=http://117.72.94.142:89/
REQUEST_SERVER=http://117.72.94.142:89/
REGISTER_URL=http://117.72.94.142:89/account/toActionCenter
KF_REPLACE_URL=http://117.72.94.142:89/account/toPersionCenter
CHARGE_URL=http://117.72.94.142:89
————————————————————————————
2.修改第二个url
n++打开lib\arm64-v8a\libhook.so
将117.72.94.142:000089修改为自己的ip
注意长度要保持一致(端口前补0),例如:111.2.33.444:0008888
————————————————————————————
3.修改第三个url
打开文件assets/_base_setting.json
替换为自己的IP
“check_apk_path”: “http://117.72.94.142:89/cahx.dist”,
“check_apk_path_ip”: “http://117.72.94.142:89/cahx.dist”,
“download_apk_path”: “http://117.72.94.142:80/packages”,
“cdn_path”: “http://117.72.94.142:80/cahx.dist”,
“theone_cdn_path”: “http://117.72.94.142:80/cahx.dist”
————————————————————————————
4.修改第四个url
打开文件assets/res_20240831223101.7z中的res/_base_setting.json
替换为自己的IP
“check_apk_path”: “http://117.72.94.142:89/cahx.dist”,
“check_apk_path_ip”: “http://117.72.94.142:89/cahx.dist”,
“download_apk_path”: “http://117.72.94.142:80/packages”,
“cdn_path”: “http://117.72.94.142:80/cahx.dist”,
“theone_cdn_path”: “http://117.72.94.142:80/cahx.dist”
————————————————————————————-
5.使用V2+V3进行签名签名 (建议使用安卓版的MT管理器来签名)
其他自行研究
后台
http://117.72.94.142:8011/
admin
admin
PS: 密码如果错误,请自行在数据库修改,密码的加密方式为:
用户名 + 明文密码 + salt(可以在数据库中找 数据库:cahx_admin -> 表:sys_user -> salt字段的值)
然后使用MD5进行加密(可以到这个网站去生成:https://www.cmd5.com/)
替换数据库中的密码
资源下载: