## 1.安裝寶塔環境
> nginx
> mysql8
> php7.3
> 安裝之后修改禁用函數 配置文件315行修改為
```
disable_functions = passthru,exec,system,chroot,chgrp,chown,shell_exec,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,popepassthru,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
```

> 安裝php的redis擴展和fileinfo擴展

> redis 安裝還之后 設置redis密碼

> Supervisor管理器 2.2
## 2.添加網站 記住根目錄路徑哦

## 3.添加數據庫 并導入數據

## 4.配置api的.env配置文件

## 5.設置api網站運行目錄

## 6.設置偽靜態

## 7.設置好三個網站的ssl證書
## 8.配置supervisor
> 運行目錄:/www/wwwroot/api/
> 啟動命令:/www/server/php/73/bin /www/wwwroot/api/artisan horizon

>顯示成這樣就算正常了

## 9.添加定時器
```
crontab -e
```
> 按鍵盤a, 然后粘貼以下代碼
```
* * * * * cd /www/wwwroot/api && /www/server/php/73/bin/php artisan schedule:run >> /login.log 2>&1
*/1 * * * * sh /www/wwwroot/api/laravel.sh
```
> 按鍵盤esc 輸入:wq 回車 就會保存了 這樣就會自動開獎了