当前位置:网站首页>TrinityCore魔兽世界服务器-注册网站
TrinityCore魔兽世界服务器-注册网站
2022-07-24 22:00:00 【开始沸腾了】
前言
WoWSimpleRegistration是azerothcore官方提供的账号注册页面的项目。
同TrinityCore类似,azerothcore也是一个模拟魔兽世界的开源项目。
WoWSimpleRegistration同样也支持TrinityCore的账号注册。
参考文档:
- https://github.com/TrinityCore/WoWSimpleRegistration
- https://github.com/masterking32/WoWSimpleRegistration.git
- https://github.com/azerothcore/azerothcore-wotlk
下面是网站的部署介绍。
安装php相关依赖
WoWSimpleRegistration是基于php的。
1、安装php相关依赖
sudo apt install php-fpm php-opcache php-cli php-gd php-curl php-mysql php-mbstring php-gmp
2、可以选择解除限制 FPM 允许解析的脚本扩展名
添加/etc/php/7.4/fpm/pool.d/www.conf文件下的security.limit_extensions参数
security.limit_extensions = .php .php3 .php4 .php5 .php7 .js .css .jpg .png .gif .html .htm
安装nginx
网站使用nginx部署,所以如下安装nginx
sudo apt install nginx
下载网页源码
#下载
sudo wget https://github.com/TrinityCore/WoWSimpleRegistration/archive/refs/tags/2.0.2.tar.gz
#解压
sudo tar -zxvf 2.0.2.tar.gz
#将解压得到的源码,移动到/var/www/html 目录下
sudo mv WoWSimpleRegistration-2.0.2 /var/www/html/
配置
1、WoWSimpleRegistration配置
cd /var/www/html/WoWSimpleRegistration-2.0.2/application/config
sudo cp config.php.sample config.php
sudo vi config.php
#对config.php进行配置,具体填什么选什么跟着注释走就行了
#下面列出比较重要的几个参数
Core Type: #支持的魔兽开源项目类型
0 = TrinityCore
1 = AzerothCore
2 = AshamaneCore
3 = Skyfire Project
4 = OregonCore
5 = CMangos
10 = etc
=====================================================================*/
$config['server_core'] = 0; #TC选0(默认为0)
***************** GMP REQUIRED ********************
******Uncomment extension=gmp in your php.ini******
=====================================================================*/
#21年版本的TC都选true
$config['srp6_support'] = true; // READ COMMENTS, [Please ENABLE GMP]
/*===================================================================
You Auth/Realmd MySQL information.
db_auth_host
Auth Database Host
db_auth_port
Auth Database Port
db_auth_user
Auth Database Username
db_auth_pass
Auth Database Password
db_auth_dbname
Auth Database DBName
=====================================================================*/
$config['db_auth_host'] = '127.0.0.1'; #数据库的地址
$config['db_auth_port'] = '3306'; #端口
$config['db_auth_user'] = 'root'; #用户名
$config['db_auth_pass'] = 'root'; #密码
$config['db_auth_dbname'] = 'auth'; #db名称(TC为auth)
/*===================================================================
Your character's databases. If your server has a lot of realms you can check the example at the bottom of the file. =====================================================================*/ $config['realmlists'] = array( "1" => array( 'realmid' => 1, // Realm ID 'realmname' => "WOW沸腾了", // Realm Name 服务器名称 'db_host' => "127.0.0.1", // MySQL Host IP 'db_port' => "3306", // MySQL Host Port 'db_user' => "root", // MySQL username 'db_pass' => 'root', // MySQL password 'db_name' => "characters" // Characters database name
)
);
2、nginx配置
具体nginx如何使用不在这里介绍。以下是本项目中我的配置。
cd /etc/nginx/conf.d/
vi wow.conf
#内容如下
server {
listen 80; # 监听端口
server_name 127.0.0.1; # 自己PC的ip或者服务器的域名,本地访问用的127.0.0.1
root /var/www/html/WoWSimpleRegistration-2.0.2; # 网页、文件路径
index index.html index.htm index.php index.nginx-debian.html;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
}
配置完成
重启php7.4-fpm和nginx,整个项目搭建完毕。
可以点这里沸腾WOW看看我的效果
边栏推荐
- Is it safe to log in the securities account on the flush
- 《JUC并发编程 - 高级篇》05 -共享模型之无锁 (CAS | 原子整数 | 原子引用 | 原子数组 | 字段更新器 | 原子累加器 | Unsafe类 )
- [cloud native kubernetes] kubernetes cluster advanced resource object staterulesets
- Im instant messaging develops ten million level concurrent long connection Gateway Technology
- 洛谷 P2024 [NOI2001] 食物链
- Boundary extraction of PCL point cloud processing (58)
- IndexTree
- Go+ language
- 阿里云SSL证书
- Gradle learning set integration
猜你喜欢
随机推荐
PCL point cloud processing to find the two endpoints of the line point set (57)
IndexTree
一种兼容、更小、易用的WEB字体API
CAD text styles
Multi task face attribute analysis based on deep learning (based on paddlepaddle)
Leetcode 102. sequence traversal of binary tree
Implementation of graph structure, from point to edge and then to graph
Brainstorming -- using reduce method to reconstruct concat function
One click compilation and installation of redis6.2.4
Let‘s Encrypt
ASP.NET Core 6.0 基于模型验证的数据验证
Im instant messaging develops ten million level concurrent long connection Gateway Technology
Use kettle to read the data in Excel file and store it in MySQL
DDos攻击分类
Visual studio input! No prompt
Push information to wechat through enterprise wechat self built application
Apipost signs up with Chinatelecom! Work together to accelerate the digital transformation of enterprises
ansible-playbook 可用参数
SVM - for linear separability (Part 2)
From Fibonacci sequence to matrix fast power technique









