V2Board机场前端面板搭建
安装宝塔面板yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec
安装Nginx1.17 MySQL 5.6 PHP 7.4
安装PHP扩展
需额外安装两个扩展:Redis、fileinfo
解除PHP函数限制
需解除四个函数:putenv、proc_open、pcntl_alarm、pcntl_signal
创建网站目录并删除目录下的文件
# cd /www/wwwroot/ceshi/
# chattr -i .user.ini
# rm -rf .htaccess 404.html index.html .user.ini
克隆V2Board项目
# git clone https://github.com/v2board/v2board.git ./
Cloning into '.'...
remote: Enumerating objects: 18420, done.
remote: Counting objects: 100% (294/294), done.
remote: Compressing objects: 100% (154/154), done.
remote: Total 18420 (delta 174), reused 228 (delta 135), pack-reused 18126
Receiving objects: 100% (18420/18420), 41.15 MiB | 1.30 MiB/s, done.
Resolving deltas: 100% (13322/13322), done.
# ls
app bootstrap config init.sh LICENSE pm2.yaml readme.md routes storage update_dev.sh
artisan composer.json database library phpunit.xml public resources server.php tests update.sh
V2Board安装
sh init.sh
按提示输入已经创建成功的数据库的信息,并输入管理员邮箱
给目录重新赋予权限
# chown -R www:www *
配置网站目录和伪静态规则
设置站点运行目录为/public
设置站点伪静态
location /downloads {
}
location / {
try_files $uri $uri/ /index.php$is_args$query_string;
}
location ~ .*\.(js|css)?$
{
expires 1h;
error_log off;
access_log /dev/null;
}
配置计划任务和启动队列服务
配置计划任务
1分钟运行一次
php /www/wwwroot/网站/artisan schedule:run
启动队列服务(php /www/wwwroot/网站/artisan horizon)这里要加上绝对路径,不然会出现队列异常
前端安装成功
V2board搭建教程—国内中转节点对接篇:https://bbs.cnblackhat.com/thread-3025-1-1.html
v2board对接后端节点篇:https://bbs.cnblackhat.com/thread-3016-1-1.html
V2board对接支付系统篇:https://bbs.cnblackhat.com/thread-3017-1-1.html
v2board对接邮件篇:https://bbs.cnblackhat.com/thread-3018-1-1.html
页:
[1]