首页 游戏资源分享 手游技术交流 咸鱼之王 Linux 架设教程
0赞
赞赏
手机版
扫码打开手机版
把文字装进口袋

其他教程 咸鱼之王 Linux 架设教程

小雨敲窗y  2024-9-25 13:47:30
  1. 咸鱼之王 Linux 架设教程

  2. 系统:Centos 7.6
  3. -----------------------------------------------------------------------------------------------------------------------------------
  4. 安装宝塔
  5. yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

  6. 输入y回车确认安装
  7. -----------------------------------------------------------------------------------------------------------------------------------
  8. 安装环境:
  9. Nginx 1.18
  10. mysql 5.7
  11. Php 7.2
  12. MongoDB 4.0.10
  13. Redis 6.27
  14. -----------------------------------------------------------------------------------------------------------------------------------
  15. 宝塔放行端口:1-65535  

  16. 关闭防火墙:
  17. systemctl stop firewalld
  18. systemctl disable firewalld
  19. -----------------------------------------------------------------------------------------------------------------------------------
  20. 上传服务端到服务器根目录

  21. 解压
  22. cd /
  23. unzip home.zip
  24. -----------------------------------------------------------------------------------------------------------------------------------
  25. 给权限:

  26. chmod 777 -R /home/proj/
  27. -----------------------------------------------------------------------------------------------------------------------------------
  28. 安装环境:

  29. cd /home/proj
  30. wget https://openresty.org/download/openresty-1.19.3.1.tar.gz

  31. tar -zxvf openresty-1.19.3.1.tar.gz

  32. mv openresty-1.19.3.1 openresty

  33. cd openresty
  34. sudo yum install -y pcre-devel openssl-devel

  35. ./configure

  36. make

  37. make install
  38. -----------------------------------------------------------------------------------------------------------------------------------
  39. 配置环境变量

  40. echo "openresty环境变量"
  41. echo "PATH=/usr/local/openresty/bin:/usr/local/openresty/nginx/sbin:$PATH
  42. export  LC_ALL=en_US.UTF-8
  43. export PATH" >> ~/.bash_profile

  44. 立即生效

  45. source ~/.bash_profile
  46. -----------------------------------------------------------------------------------------------------------------------------------
  47. 修改数据库root密码:123456

  48. 导入数据库

  49. mysql -uroot -p123456
  50. create database sanguo DEFAULT CHARACTER SET utf8;
  51. flush privileges; #
  52. use sanguo
  53. source /home/sql/sanguo.sql
  54. exit;
  55. -----------------------------------------------------------------------------------------------------------------------------------
  56. 修改服务端文件IP:替换:192.168.200.99
  57. home/proj/common/settings.lus
  58. home/proj/goserver/admin/assets/web/.env.development
  59. home/proj/goserver/admin/assets/web/dist/js/app.3d18e251.js
  60. home/proj/goserver/admin/assets/web/dist/js/highlight.js.0adc4c0f.js
  61. home/proj/goserver/agent_admin/agent_assets/web/.env.development
  62. home/proj\goserver\agent_admin\agent_assets\web\dist\js\app.bfd4e5a3.js
  63. home/proj\goserver\agent_admin\agent_assets\web\dist\js\highlight.js.0adc4c0f.js
  64. home\proj\pyapi\wxpay\app.py
  65. www\wwwroot\game\assets\resources\import\24\241bc4ec-587f-41fa-a24d-e904c5f906c6.9f804.json"
  66. -----------------------------------------------------------------------------------------------------------------------------------
  67. 创建网站:

  68. IP:85
  69. 网站目录:/home/proj/goserver/admin/assets/web/dist


  70. 127.0.0.1:82
  71. 网站目录:\www\wwwroot\game
  72. -----------------------------------------------------------------------------------------------------------------------------------
  73. 启动服务端:

  74. cd /home/proj/apiserver
  75. nginx -p `pwd` -c conf/nginx.conf

  76. cd /home/proj/skynet
  77. sh getkey.sh

  78. 将生成的key替换到/home/proj/skynet/key.txt中


  79. 启动登录服务:

  80. ./skynet ../loginserver/prodconfig


  81. 启动游戏服务:

  82. ./skynet ../gameserver/prodconfig


  83. 启动管理后台服务:

  84. cd /home/proj/goserver
  85. nohup ./mygo &


  86. 下面两个可以不启动

  87. cd /home/proj/pyapi/kefu
  88. python main.py
  89. cd /home/proj/pyapi/wxpay
  90. sh start.sh
  91. -----------------------------------------------------------------------------------------------------------------------------------
  92. 配置区服:

  93. IP:85/#/login?next=%2F

  94. 用户名:admin

  95. 密   码:admin

  96. 游戏配置-区服配置-添加-名称随意-保存-开服-数量填1-保存

  97. 邮件管理里可以发送物品,要输入角色名,游戏内可以改名。
  98. -----------------------------------------------------------------------------------------------------------------------------------
  99. 客户端 反编译APK 修改192.168.200.66

  100. assets/assets/main/index.7ab56.js

  101. assets/assets/resources/import/24/241bc4ec-587f-41fa-a24d-e904c5f906c6.9bd57.json

  102. smali_classes4\cn\wyyidc\myapplication\LiveLiterals$MainActivityKt.smali
复制代码

参与人数 1酷币 +1 收起 理由
d8fe3c020b + 1 1111111111111111111111111111111111111111

查看全部评分总评分 : 酷币 +1

使用道具 举报

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