【貂蝉三国】新三国题材三网H5全网通Q萌卡通剧情闯关手游-2023年5月31日最新打包Win服务端源码视频架设教程-多功能GM授权网页后台-用户后台!
【貂蝉三国】新三国题材三网H5全网通Q萌卡通剧情闯关手游-2023年5月31日最新打包Win服务端源码视频架设教程-多功能GM授权网页后台-用户后台!


























测试系统 centos 7.6 64位
教程演示虚拟机地址:43.139.129.244 外网和局域网类似
安装宝塔直接运行命令即可。
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
搭建环境:
Nginx1.18
mysql5.6
php5.61、关闭防火墙、开放端口
systemctl stop firewalld
systemctl disable firewalld防火墙不关闭也行
宝塔放行端口:1:65535
或单独打开 80 5201
PS:如果使用腾讯云或阿里云记得把控制台的端口也打开
2、上传sg.tar.gz到服务器根目录(根目录不是root目录!!使用WinSCP或其他工具上传数据,也可以直接宝塔传!!)
解压sg.tar.gz
cd /
tar zxvf sg.tar.gz给予 777权限
chmod -R 777 /dcsg/
chmod -R 777 /www/wwwroot/game3.环境配置
4、设置数据库密码为:syymw.com(在宝塔直接设置)
宝塔-软件管理-mysql5.6设置--配置修改-第24行按回车键-第25行加入
lower_case_table_names =1
保存--重启数据库
命令行输入
cd /dcsg
./sk数据库创建结束。可以通过宝塔查看是否创建成功。(数据库 - 点击 从服务器获取 获取到1个就正确的)
运行后为了安全可以把 sk 文件删除
6、搭建网站
新建一个网站-你的ip:端口 或域名:端口
有端口就添加端口这里的端口80
网站目录设置\www\wwwroot\game
---------------------------------------------------------------------
7、服务端和网站修改 43.139.129.244 修改为你的IP服务端修改:(这里改为127.0.0.1应该也行 自行测试)
dcsg\server\sh\configure.xml
dcsg\server\sh\configure_center.xml
dcsg\server\sh\configure_cross.xml网站修改:
/www/wwwroot/game/index.html
上面全部替换为你的实际IP即可
到此算服务端就可以了,下面启动看看。
7、启动游戏服务
启动命令
cd /dcsg/server/sh
sh gamectl.sh startall停止命令
cd /dcsg/server/sh
sh gamectl.sh stopall启动后可以通过
端口查看命令 netstat -lntp看到5201 基本就可以了
游戏地址: http://外网IP
可以正常登陆。
好了。本期教程到此结束。
祝君好运。。。。
其他自行研究吧。。。
PS:
授权地址:外网IP/gm/admin/login.php
授权账号: admin
授权密码: syymw.com玩家后台:外网ip/gm/player/login.php
友情提示:如果是阿里云或者腾讯云架设 请注意端口是否开放。
------------------------------------------------------------------------------------
本期教程到此结束。
1. 本站所有资源来源于用户上传和网络,如有侵权请联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
8. 精力有限,不少源码未能详细测试(解密),不能分辨部分源码是病毒还是误报,所以没有进行任何修改,大家使用前请进行甄别!
教热门 » 【貂蝉三国】新三国题材三网H5全网通Q萌卡通剧情闯关手游-2023年5月31日最新打包Win服务端源码视频架设教程-多功能GM授权网页后台-用户后台!