找回密码
 立即注册

微信登录

只需一步,快速开始

QQ登录

只需一步,快速开始

a20438d7e94f24b8cf1dbcc66889f66d.webp

79b91015377d21a6a4df524d4eb9c67c.webp

937a0eea29424a6cb4c0f9bedf993eb7.webp

277734e68e2dd631228e9134a6f064e4.webp

d16d71febbed4b0a08da5e7b0df9afa8.webp

ddd3811d20a945c59e981d3a79b724d0.webp

  1. 精品西游  Linux  搭建教程
  2. 测试系统:CentOS 7.6

  3. 安装宝塔
  4. yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
  5. 输入y回车确认安装

  6. 安装环境
  7. Nginx1.18
  8. Mysql5.7

  9. 关闭防火墙
  10. systemctl stop firewalld.service
  11. systemctl disable firewalld.service

  12. 上传服务端jpxy.zip到服务器根目录:/
  13. 解压
  14. cd /
  15. unzip -o jpxy.zip

  16. 给权限
  17. chmod -R 777 /home

  18. 安装环境
  19. cd /opt
  20. tar xvzf environment.tar.gz

  21. ln -s /opt/environment/pm2/bin/pm2 /usr/local/bin/pm2

  22. echo 'export PATH=$PATH:/opt/environment/node/bin' >> /etc/profile

  23. 立即生效
  24. source /etc/profile

  25. 安装jdk
  26. yum -y install java-1.8.0-openjdk.x86_64

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

  28. 重启数据库

  29. 导入数据库
  30. cd /home
  31. ./sk

  32. 重启nginx

  33. 修改服务端IP
  34. /home/xy-server/conf/GameConf.ts
  35. /home/sql/dream.sql
  36. /home/t9gm.com/project.manifest
  37. /home/t9gm.com/version.manifest

  38. 启动命令:
  39. cd /home/xy-server/
  40. pm2 start dbserv.ts --time --interpreter /opt/environment/node/bin/ts-node

  41. pm2 start gate.ts --time --interpreter /opt/environment/node/bin/ts-node

  42. pm2 start game.ts --time --interpreter /opt/environment/node/bin/ts-node

  43. 停止命令
  44. pm2 stop all

  45. 启动后台
  46. cd /home/ht
  47. nohup java -jar dream.jar >log.log 2>&1 &

  48. 后台地址:
  49. http://IP:8899
  50. 账号:admin
  51. 密码:123456
  52. 邀请码:ABCDE

  53. 客户端修改:
  54. 安卓:
  55. /assets/res/import/05/05ee447a-6677-4dcc-8f1d-2ab266dc6c11.json
  56. /assets/res/raw-assets/2d/2d9aa17d-62c1-4219-8b9f-52dca8ad4beb.manifest
  57. /assets/res/raw-assets/07/07d3d531-c14b-4d4d-89a1-5240aa5ebb64.manifest

  58. 苹果:
  59. /Payload/dhxy-mobile.app/res/import/05/05ee447a-6677-4dcc-8f1d-2ab266dc6c11.json
  60. /Payload/dhxy-mobile.app/res/raw-assets/2d/2d9aa17d-62c1-4219-8b9f-52dca8ad4beb.manifest
  61. /Payload/dhxy-mobile.app/res/raw-assets/07/07d3d531-c14b-4d4d-89a1-5240aa5ebb64.manifest
复制代码