逆天小朋友 发表于 2024-8-25 22:02:17

大话回合手游【精品西游之如初西游】Linux一键脚本+Linux手工服务端+安卓苹果双端+代理后台+详细搭建教程








精品西游之如初西游Linux架设教程
测试系统:CentOS7.6

安装宝塔直接运行命令即可。
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
输入y回车确认安装

安装环境:
Nginx1.18
Mysql5.7

关闭防火墙
systemctl stop firewalld
systemctl disable firewalld

上传服务端到服务器根目录(根目录不是root目录!!使用WinSCP或其他工具上传数据,也可以直接宝塔传!!)

解压
cd /
unzip -o dhxy.zip

给予 777权限
chmod -R 777 /home/

配置环境变量
ln -s /opt/environment/pm2/bin/pm2 /usr/local/bin/pm2
echo 'export PATH=$PATH:/opt/environment/node/bin' >> /etc/profile
echo 'JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.322.b07-2.el8_5.x86_64' >> /etc/profile
echo 'PATH=$PATH:$JAVA_HOME/bin' >> /etc/profile
echo 'CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar' >> /etc/profile
echo 'export JAVA_HOME CLASSPATH PATH' >> /etc/profile

安装环境:
cd /opt
tar -xzvf environment.tar.gz
yum install -y java-1.8.0-openjdk.x86_64
source /etc/profile
npm install pm2

设置数据库root密码为:t9gm.com
重启数据库

修改服务端文件IP 159.75.168.238
/home/xy_ga.sql
/home/xy-server/conf/GameConf.ts
/home/t9gm.com/android/project.manifest
/home/t9gm.com/android/version.manifest

导入数据库
cd /home
./sk

重启nginx

启动游戏
cd /home/xy-server
pm2 start dbserv.ts --time --interpreter /opt/environment/node/bin/ts-node
pm2 start gate.ts --time --interpreter /opt/environment/node/bin/ts-node
pm2 start game.ts --time --interpreter /opt/environment/node/bin/ts-node

启动后台:
cd /home/rabbit
./rabbit nohup java -jar rabbit.jar >log.log 2>&1 &

停止命令:
pm2 stop all

关闭后台:
sudo fuser -k 9091/tcp

客户端修改 (客户端默认地址159.75.168.238)
安卓:
/assets/assets/resources/import/ae/ae9b3372-c7a7-454e-a362-597894da428d.92426.json
ip分为4段
"i1":"159.","i2":"75.","i3":"168.","i4":"238"
ip分为2段
"dip1":"159.75.","dip2":"168.238"

/assets/assets/resources/native/07/07d3d531-c14b-4d4d-89a1-5240aa5ebb64.ded39.manifest
/assets/assets/resources/native/2d/2d9aa17d-62c1-4219-8b9f-52dca8ad4beb.f805d.manifest

苹果:
/Payload/dhxy-mobile.app/assets/resources/import/ae/ae9b3372-c7a7-454e-a362-597894da428d.92426.json
/Payload/dhxy-mobile.app/assets/resources/native/07/07d3d531-c14b-4d4d-89a1-5240aa5ebb64.92922.manifest
/Payload/dhxy-mobile.app/assets/resources/native/2d/2d9aa17d-62c1-4219-8b9f-52dca8ad4beb.3d621.manifest

邀请码:12345

后台地址:
http://IP:9091
登录账号:admin
登录密码:123456





芳华如梦 发表于 2024-9-17 11:11:56

{:4_205:}{:4_205:}{:4_205:}{:4_205:}{:4_205:}

韦总 发表于 2024-10-10 04:13:57

{:4_260:}{:4_260:}{:4_260:}{:4_260:}
页: [1]
查看完整版本: 大话回合手游【精品西游之如初西游】Linux一键脚本+Linux手工服务端+安卓苹果双端+代理后台+详细搭建教程