【173免费下载论坛】

 找回密码
 注册

[其他教程] 唯美仙侠H5【龙玉传说H5】Linux手工详细架设教程

[复制链接]
123456811  发表于 2025-1-24 13:58:04 | 显示全部楼层 |阅读模式
  1. 龙玉传说

  2. 测试系统 CentOS 7.x

  3. 安装宝塔
  4. yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

  5. 安装环境
  6. Nginx 1.18
  7. MySQL 5.6.5
  8. PHP7.0  (安装redis扩展、Swoole扩展)
  9. Redis


  10. 放行端口:1:65535

  11. 关闭防火墙
  12. systemctl stop firewalld
  13. systemctl disable firewalld


  14. 上传data.zip 到服务器根目录
  15. 解压
  16. cd /
  17. unzip data.zip

  18. 给权限
  19. chmod -R 777 /data


  20. 新建站点:127.0.0.1:5100
  21. 网站目录 /data/htdocs/sword_lord/server/api/www
  22. 关闭防跨站
  23. 设置伪静态   
  24. rewrite ^(?i)/admin1/(.*)$ /yz.php/$1 last;

  25. 配置文件  第8行开始增加     
  26.     add_header 'Access-Control-Allow-Origin' '*';
  27.     add_header 'Access-Control-Allow-Credentials' 'true';
  28.     add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
  29.     add_header 'Access-Control-Expose-Headers' 'X-Requested-With';
  30. 配置文件 第50行 回车 开始增加         
  31.     location / {
  32.         expires -1s; #禁止缓存
  33.         try_files $uri $uri/ /action.php?$query_string;
  34.     }   



  35. 新建站点  IP   
  36. 网站目录 /data/htdocs/sword_lord/client/web  
  37. 关闭防跨站


  38. 软件商店  Redis  配置文件第二行加入改为
  39. requirepass l123
  40. maxclients 10000
  41. 重载配置
  42. 重启


  43. 软件商店  PHP
  44. 配置修改  修改 memory_limit 为1024M脚本内存限制
  45. 性能调整  并发方案选择4GB内存
  46. 重载配置
  47. 重启


  48. 服务端IP修改    替换:106.55.254.14
  49. \data\htdocs\sword_lord\client\web\index.html
  50. \htdocs\sword_lord\server\api\config\mysql.php
  51. \htdocs\sword_lord\server\api\config\redis.php
  52. \data\htdocs\sword_lord\server\api\www\client.php
  53. \data\htdocs\sword_lord\server\sbin\init.php


  54. 宝塔设置数据库密码为:123456

  55. 修改/data/sql/lx_lord.sql 数据库IP  替换:106.55.254.14  为你服务器IP

  56. 导入数据库
  57. cd /data
  58. ./sk


  59. 安装环境
  60. cd /data/htdocs/sword_lord/server
  61. ./install.sh

  62. 宝塔软件商店
  63. 重启 nginx   php   redis


  64. 重启服务器

  65. reboot


  66. 启动游戏
  67. cd /data/htdocs/sword_lord/server/sbin
  68. sh start-keep.sh

  69. 关闭游戏
  70. cd /data/htdocs/sword_lord/server/sbin
  71. sh host-stop.sh


  72. 游戏地址:

  73. http://IP


  74. 游戏后台
  75. 总后台:http://IP/xzj.php
  76. GM码:123123

  77. CDK 后台:http://IP/cdk   
  78. GM码:123123

  79. 玩家激活后台:http://IPIP/pay
  80. 玩家后台:IP/vip

  81. 重新上游戏生效
复制代码


声明

1.本站资源来源于网络,本站不研究无任何技术支持!仅供自行学习交流之用,请勿用于商业用途!

2.一切网民在进入酷游主页及各层页面时已经仔细看过并完全同意本站站务区内发布的免责声明

3.本站内容如若侵犯到您的权益,请通过邮件联系方式联系我们,我们会尽快处理!youxi#111.com(#换@)

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|【173免费下载论坛】 ( 桂ICP备2022010778号-6 )

GMT+8, 2025-8-11 03:10 , Processed in 0.087406 second(s), 26 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2012 Comsenz Inc. Template by 600xin

返回顶部