①安装宝塔
②找到PHP安装扩展

Redis 
fileinfo

③禁用php函数

putenv 
proc_open 
pcntl_alarm 
pcntl_signal

④添加站点
⑤cd到目录

 # 删除目录下文件
chattr -i .user.ini
rm -rf .htaccess 404.html index.html .user.ini

⑥执行命令从 Github 克隆到当前目录。

 git clone https://github.com/v2board/v2board.git ./

⑦执行命令安装依赖包以及V2board

 #安装
sh init.sh
#授权
chown -R www ../

根据提示完成安装 PS:报错输入composer global require laravel/installer

⑧配置站点目录及伪静态

 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; 
}

⑨配置定时任务

 php /www/wwwroot/路径/artisan schedule:run

⑩安装Pm2 并设置守护进程

#项目所在根目录 /www/wwwroot/v2board/
#启动文件名称 pm2.yaml
#项目名称 v2board