小编教大家搭建游戏啦 一款H5奉上
先上图 然后再看教程
=========================================================================
90GM基地:www.t1gm.com
默认解压密码:www.t1gm.com
本教程只限于技术研究使用,请勿用于商业用途。
本资源由90GM基地独家提供
90GM基地交流群:639140260
★★★★★架设所需软件请进入QQ群-群文件内或论坛自行下载★★★★★
本站教程、资源皆在单机环境进行,仅供单机研究学习使用,下载后请于24小时内删除,或购买正版。
=========================================================================
无限贝拉 Linux 搭建教程
测试系统:Centos 7.6
安装宝塔
yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec
输入y回车确认安装
安装环境
Nginx 1.18
MySQL 5.7
PHP 5.6
memcached
宝塔放行端口:1-65535
关闭防火墙:
systemctl stop firewalld.service
systemctl disable firewalld.service
上传服务端data.zip到服务器根目录:
解压:
cd /
unzip data.zip
给权限:
chmod 777 -R /data
配置环境:
yum -y groupinstall 'Development Tools'
yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
cd /
tar -zxvf Python-3.8.0.tgz
cd Python-3.8.0
./configure
make
make install
pip3 install tornado
ln -s /data/game/lib/* /usr/lib64/
ldconfig
创建网站:
网站1:127.0.0.1:85
目录指向:/data/game/agent
修改配置文件:在20行加入以下代码
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers Origin,Accept,Authorization,platformId,ut,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
add_header Access-Control-Allow-Credentials true;
网站2:IP
目录指向:/data/www/web-mobile
修改配置文件:在20行加入以下代码
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers Origin,Accept,Authorization,platformId,ut,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
add_header Access-Control-Allow-Credentials true;
网站3:127.0.0.2:82
目录指向:/data/game/htdocs/www/dev
修改配置文件:在20行加入以下代码
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers Origin,Accept,Authorization,platformId,ut,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
add_header Access-Control-Allow-Credentials true;
修改数据库root密码为:123456
导入数据库:
cd /data
./sk
修改服务端文件IP: 替换:49.235.188.189
/data/game/agent/h02_ys1_s11/server/2023011702/publish_release/serverconfig.xml
/data/game/agent/h02_ys1_s11/script/agent_vars.sh
/data/game/agent/h02_ys1_s11/htdocs/common/conf/comm.config.php
/data/game/agent/h02_ys1_s11/htdocs/app/config/config.php
/data/game/htdocs/www/dev/dev-query-h02.php
/data/game/htdocs/www/dev/admintool/config.php
/data/ops_cn/bin/global_vars.sh
/data/www/web-mobile/assets/main/index.js
/data/www/web-mobile/dev-query-h02.php
启动游戏
cd /data/game/agent/h02_ys1_s11/server/2023011702/publish_release
./start_gateway.sh
cd /data/game/agent/h02_ys1_s11/server/2023011702/publish_release
./start.sh
=========================================================================
90GM基地:www.t1gm.com
默认解压密码:www.t1gm.com
本教程只限于技术研究使用,请勿用于商业用途。
本资源由90GM基地独家提供
90GM基地交流群:639140260
★★★★★架设所需软件请进入QQ群-群文件内或论坛自行下载★★★★★
本站教程、资源皆在单机环境进行,仅供单机研究学习使用,下载后请于24小时内删除,或购买正版。
=========================================================================