- 精品西游 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回车确认安装
- 安装环境
- Nginx1.18
- Mysql5.7
- 关闭防火墙
- systemctl stop firewalld.service
- systemctl disable firewalld.service
- 上传服务端jpxy.zip到服务器根目录:/
- 解压
- cd /
- unzip -o jpxy.zip
- 给权限
- chmod -R 777 /home
- 安装环境
- cd /opt
- tar xvzf environment.tar.gz
- ln -s /opt/environment/pm2/bin/pm2 /usr/local/bin/pm2
- echo 'export PATH=$PATH:/opt/environment/node/bin' >> /etc/profile
- 立即生效
- source /etc/profile
- 安装jdk
- yum -y install java-1.8.0-openjdk.x86_64
- 设置数据库root密码为:t9gm.com
- 重启数据库
- 导入数据库
- cd /home
- ./sk
- 重启nginx
- 修改服务端IP
- /home/xy-server/conf/GameConf.ts
- /home/sql/dream.sql
- /home/t9gm.com/project.manifest
- /home/t9gm.com/version.manifest
- 启动命令:
- 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
- 停止命令
- pm2 stop all
- 启动后台
- cd /home/ht
- nohup java -jar dream.jar >log.log 2>&1 &
- 后台地址:
- http://IP:8899
- 账号:admin
- 密码:123456
- 邀请码:ABCDE
- 客户端修改:
- 安卓:
- /assets/res/import/05/05ee447a-6677-4dcc-8f1d-2ab266dc6c11.json
- /assets/res/raw-assets/2d/2d9aa17d-62c1-4219-8b9f-52dca8ad4beb.manifest
- /assets/res/raw-assets/07/07d3d531-c14b-4d4d-89a1-5240aa5ebb64.manifest
- 苹果:
- /Payload/dhxy-mobile.app/res/import/05/05ee447a-6677-4dcc-8f1d-2ab266dc6c11.json
- /Payload/dhxy-mobile.app/res/raw-assets/2d/2d9aa17d-62c1-4219-8b9f-52dca8ad4beb.manifest
- /Payload/dhxy-mobile.app/res/raw-assets/07/07d3d531-c14b-4d4d-89a1-5240aa5ebb64.manifest
复制代码
|
大佬,别默默的看了,快登录帮我点评一下吧!:)
登录 立即注册