- 天书奇谈3D Linux 搭建教程
- 安装宝塔
- yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
- 输入y回车确认安装
- 安装环境
- Nginx1.18
- Mysql5.6
- Php5.4
- 关闭防火墙
- systemctl stop firewalld.service
- systemctl disable firewalld.service
- 上传服务端到服务器根目录
- 解压
- cd / && unzip -o tsqt.zip
- 给权限
- chmod -R 777 /data
- chmod -R 777 /usr/java
- chmod -R 777 /www/wwwroot/tsqt
- 设置数据库root密码为:t9gm.com
-
- 重启数据库
- 修改服务端文件IP: 替换:193.112.101.67
- /data/gameserver/db_s1/logcenter.conf
- /data/gameserver/db_s2/logcenter.conf
- /data/gameserver/fight_s1/fightserver.conf
- /data/gameserver/game_s1/config.lua
- /data/gameserver/game_s1/gameworld.conf
- /data/gameserver/game_s1/logcenter.conf
- /data/gameserver/game_s1/loginserver.conf
- /data/gameserver/game_s2/config.lua
- /data/gameserver/game_s2/gameworld.conf
- /data/gameserver/game_s2/logcenter.conf
- /data/gameserver/game_s2/loginserver.conf
- /data/gway-002/bin/WEB-INF/classes/server.properties
- /data/sql/gm_manage_sg_002.sql
- 导入数据库
- cd /data
- ./sk
- 重启nginx
- ps:如果你安卓高版本需要配置SSL
- 网站目录:/www/wwwroot/tsqt
- 端口81
- 伪静态:rewrite ^/(.*).hl$ /$1.php last;
- 配置环境
- cd /data && rpm -ivh jdk-8u144-linux-x64.rpm
- 启动游戏
- cd /data/
- ./start.sh
- 关闭游戏
- cd /data/
- ./stop.sh
- 客户端修改
- 安卓
- /assets/channel_config.json
- /assets/launch/LaunchHelper.lua
- 苹果
- /Payload/mmoGame.app/channel_config.json
- /Payload/mmoGame.app/launch/LaunchHelper.lua
- GM后台:
- http://IP:81/gm/gmmxcs.php
- GM码:t9gm.com
复制代码
|
大佬,别默默的看了,快登录帮我点评一下吧!:)
登录 立即注册