【九州仙侠传】Q萌仙侠闯江湖三网H5手游-2022年11月1日打包linux服务端源码视频架设教程-完善GM后台工具+运营后台工具!
【九州仙侠传】Q萌仙侠闯江湖三网H5手游-2022年11月1日打包linux服务端源码视频架设教程-完善GM后台工具+运营后台工具!























服务器系统:centos7.6
安装宝塔
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.6
redis
PHP安装 redis swoole 拓展关闭防火墙、开放端口
宝塔放行端口:1:65535
使用PPTY运行或其他命令行工具运行 以下命令
systemctl stop firewalld.service
systemctl disable firewalld.service安装所需环境 命令运行
yum install bzip2 bzip2-devel readline-devel libxml2-devel libxml2 openssl openssl-devel gcc make curl-devel -y上传服务端jzxxz.zip到根目录
cd /
unzip jzxxz.zip给予 777权限
chmod -R 777 /www/
chmod -R 777 /home/编译 libmcrypt 命令运行
cd /
tar -zxvf libmcrypt-2.5.7.tar.gzcd libmcrypt-2.5.7
./configure --prefix=/usr/localmake && make install
命令运行
ldconfig修改PHP/php.ini 文件
/www/server/php/56/etc/php.ini
在最后加入
[msgpack]
extension = /www/server/php/56/lib/php/extensionsno-debug-non-zts-20131226/msgpack.so解压:命令运行
cd /
tar -xvf node-v10.16.3-linux-x64.tar.xz -C /usr/local/添加目录 命令运行
ln -s /usr/local/node-v10.16.3-linux-x64/bin/node /usr/bin/node
ln -s /usr/local/node-v10.16.3-linux-x64/bin/npm /usr/bin/npm修改IP: 将里面的IP 124.222.50.8 替换为你自己服务器的IP
\home\admin_www\center\includes\Config.php
\home\www\web\game.html
\home\www\web\init_utils.js
\home\www\web\loading.html
\home\www\web\setting.js修改数据库密码:root
修改数据库/home/sql/backstage.sql 将里面的IP 101.43.96.80 替换为你自己服务器的IP
导入数据库
cd /home
./sk创建网站、网站关闭防跨站
IP:88端口配置到 /home/www/web 前端代码位置 修改你ip
127.0.0.1:82端口配置到/home/admin_www/api/sdk 前端与服务端链接 复制创建
127.0.0.1.0:81端口配置到/home/admin_www/center 游戏后台 复制创建
关闭放跨站
重启php
服务端基本上是结束了
下面我们启动游戏
启动游戏
cd /home/server/publish/tool
node start 启动游戏服
node start_cross 启动子跨服
node start_cross_t 启动跨服大区PS:
游戏地址:http://ip:88
后台地址:http://ip:81 账号 1 密码1
(注意:不要改上面后台账号和密码,否则用不了)
新增GM后台:http://ip:88/gmht/gm.php
GM码:syymw.com友情提示:如果是阿里云或者腾讯云架设 请注意端口是否开放。
本期教程到此结束。
1. 本站所有资源来源于用户上传和网络,如有侵权请联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
8. 精力有限,不少源码未能详细测试(解密),不能分辨部分源码是病毒还是误报,所以没有进行任何修改,大家使用前请进行甄别!
教热门 » 【九州仙侠传】Q萌仙侠闯江湖三网H5手游-2022年11月1日打包linux服务端源码视频架设教程-完善GM后台工具+运营后台工具!