ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 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 ``` ![](https://img.kancloud.cn/0a/78/0a7888d12f0773a5dd91bc409815d19e_1319x1219.png) > 安装php的redis扩展和fileinfo扩展 ![](https://img.kancloud.cn/00/d4/00d4785ce5cc153196e74bffd81ccf1f_1308x958.png) > redis 安装还之后 设置redis密码 ![](https://img.kancloud.cn/ae/62/ae620fa0839bc915f523e029951de190_1284x1031.png) > Supervisor管理器 2.2 ## 2.添加网站 记住根目录路径哦 ![](https://img.kancloud.cn/62/06/62060ee0d13f7533734a7cdaa70f52f5_1250x441.png) ## 3.添加数据库 并导入数据 ![](https://img.kancloud.cn/04/48/0448a88a2b6776a07bfa56830d834422_1117x788.png) ## 4.配置api的.env配置文件 ![](https://img.kancloud.cn/05/1c/051c8bc9c30b938a417d53eaf9b8a224_1034x970.png) ## 5.设置api网站运行目录 ![](https://img.kancloud.cn/a5/a4/a5a4b62021857bf6169bb8cc3f3710e6_1244x724.png) ## 6.设置伪静态 ![](https://img.kancloud.cn/f2/d7/f2d7ad882f3f209294d48d1f2bf7d009_1172x1060.png) ## 7.设置好三个网站的ssl证书 ## 8.配置supervisor > 运行目录:/www/wwwroot/api/ > 启动命令:/www/server/php/73/bin /www/wwwroot/api/artisan horizon ![](https://img.kancloud.cn/5c/f2/5cf2a6520cc071ffd0db9ed538ff2b8e_1868x1187.png) >显示成这样就算正常了 ![](https://img.kancloud.cn/77/0a/770a756bcfcc77d0aa1e2e69fece7d60_1902x440.png) ## 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 回车 就会保存了 这样就会自动开奖了