首页 游戏资源分享 手游技术交流 稀有开箱H5游戏【无限贝拉/疯狂骑士团】架设教程
0赞
赞赏
手机版
扫码打开手机版
把文字装进口袋

其他教程 稀有开箱H5游戏【无限贝拉/疯狂骑士团】架设教程

David902  2024-9-26 09:32:37
  1. 无限贝拉  Linux  搭建教程

  2. 测试系统:Centos 7.6

  3. 安装宝塔

  4. yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec

  5. 输入y回车确认安装


  6. 安装环境
  7. Nginx 1.18
  8. MySQL 5.7
  9. PHP 5.6
  10. memcached


  11. 宝塔放行端口:1-65535

  12. 关闭防火墙:

  13. systemctl stop firewalld.service
  14. systemctl disable firewalld.service



  15. 上传服务端data.zip到服务器根目录:

  16. 解压:

  17. cd /
  18. unzip data.zip


  19. 给权限:

  20. chmod 777 -R /data


  21. 配置环境:

  22. yum -y groupinstall 'Development Tools'

  23. yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel

  24. cd /
  25. tar -zxvf Python-3.8.0.tgz

  26. cd Python-3.8.0  
  27. ./configure

  28. make

  29. make install

  30. pip3 install tornado

  31. ln -s /data/game/lib/* /usr/lib64/

  32. ldconfig

  33. 创建网站:

  34. 网站1:127.0.0.1:85

  35. 目录指向:/data/game/agent

  36. 修改配置文件:在20行加入以下代码

  37.     add_header Access-Control-Allow-Origin *;
  38.     add_header Access-Control-Allow-Headers Origin,Accept,Authorization,platformId,ut,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type;
  39.     add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
  40.     add_header Access-Control-Allow-Credentials true;

  41. 网站2:IP

  42. 目录指向:/data/www/web-mobile

  43. 修改配置文件:在20行加入以下代码

  44.     add_header Access-Control-Allow-Origin *;
  45.     add_header Access-Control-Allow-Headers Origin,Accept,Authorization,platformId,ut,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type;
  46.     add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
  47.     add_header Access-Control-Allow-Credentials true;


  48. 网站3:127.0.0.2:82

  49. 目录指向:/data/game/htdocs/www/dev

  50. 修改配置文件:在20行加入以下代码

  51.     add_header Access-Control-Allow-Origin *;
  52.     add_header Access-Control-Allow-Headers Origin,Accept,Authorization,platformId,ut,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type;
  53.     add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
  54.     add_header Access-Control-Allow-Credentials true;

  55. 修改数据库root密码为:123456

  56. 导入数据库:

  57. cd /data
  58. ./sk


  59. 修改服务端文件IP:  替换:49.235.188.189

  60. /data/game/agent/h02_ys1_s11/server/2023011702/publish_release/serverconfig.xml

  61. /data/game/agent/h02_ys1_s11/script/agent_vars.sh

  62. /data/game/agent/h02_ys1_s11/htdocs/common/conf/comm.config.php

  63. /data/game/agent/h02_ys1_s11/htdocs/app/config/config.php

  64. /data/game/htdocs/www/dev/dev-query-h02.php

  65. /data/game/htdocs/www/dev/admintool/config.php

  66. /data/ops_cn/bin/global_vars.sh

  67. /data/www/web-mobile/assets/main/index.js

  68. /data/www/web-mobile/dev-query-h02.php


  69. 启动游戏

  70. cd /data/game/agent/h02_ys1_s11/server/2023011702/publish_release
  71. ./start_gateway.sh

  72. cd /data/game/agent/h02_ys1_s11/server/2023011702/publish_release
  73. ./start.sh
复制代码


使用道具 举报

您需要登录后才可以回帖 立即登录

确实挺贵得
2024-10-22 02:50:57
稀有开箱H5游戏【无限贝拉/疯狂骑士团】架设教程
2024-12-3 02:31:49
返回顶部