使用aaPanel(国际版宝塔)手动部署v2board详细教程
你需要在 aaPanel 选择你的系统获得安装方式。这里以 CentOS 7+ 作为系统环境进行安装。请务必使用 CentOS 7+ 安装aaPanel,其他系统可能会有未知问题。
yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh安装完成后我们登陆 aaPanel 进行环境的安装。选择使用LNMP的环境安装方式勾选如下信息☑️ Nginx 1.17
☑️ MySQL 5.6
☑️ PHP 7.4选择 Fast 快速编译后进行安装。2.安装Redis、fileinfoaaPanel 面板 > App Store > 找到PHP 7.4点击Setting > Install extentions > redis,fileinfo 进行安装。3.解除被禁止的函数aaPanel 面板 > App Store > 找到PHP 7.4点击Setting > Disabled functions 将 putenv proc_open pcntl_alarm pcntl_signal 从列表中删除。4.添加站点aaPanel 面板 > Website > Add site。在 Domain 填入你指向服务器的域名
在 Database 选择MySQL
在 PHP Verison 选择PHP-74
5.安装V2Board通过SSH登录到服务器后访问站点路径如:/www/wwwroot/你的站点域名。以下命令都需要在站点目录进行执行。# 删除目录下文件chattr -i .user.inirm -rf .htaccess 404.html index.html .user.ini执行命令从 Github 克隆到当前目录。git clone https://github.com/v2board/v2board.git ./执行命令安装依赖包以及V2boardsh init.sh根据提示完成安装6.配置站点目录及伪静态添加完成后编辑添加的站点 > Site directory > Running directory 选择 /public 保存。添加完成后编辑添加的站点 > URL rewrite 填入伪静态信息。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; }7.配置定时任务aaPanel 面板 > Cron。在 Type of Task 选择 Shell Script
在 Name of Task 填写 v2board
在 Period 选择 N Minutes 1 Minute
在 Script content 填写 php /www/wwwroot/路径/artisan schedule:run根据上述信息添加每1分钟执行一次的定时任务。8.启动队列服务V2board的系统强依赖队列服务,正常使用V2Board必须启动队列服务。下面以aaPanel中supervisor服务来守护队列服务作为演示。aaPanel 面板 > App Store > Tools找到Supervisor进行安装,安装完成后点击设置 > Add Daemon按照如下填写在 Name 填写 V2board
在 Run User 选择 www
在 Run Dir 选择 站点目录 在 Start Command 填写 php artisan horizon 在 Processes 填写 1填写后点击Confirm添加即可运行。
页:
[1]