[think\exception\ErrorException]
PDO::prepare(): MySQL server has gone away
解决方案:修改数据库配置 database.php 文件,将 break_reconnect 参数设置为 true。断线重连。
'break_reconnect' => true,
以梦为马,莫负韶华 · 不忘初心,砥砺前行 · 日夜兼程,寻找属于自己的星辰
[think\exception\ErrorException]
PDO::prepare(): MySQL server has gone away
解决方案:修改数据库配置 database.php 文件,将 break_reconnect 参数设置为 true。断线重连。
'break_reconnect' => true,
[think\process\exception\Timeout]
The process ""/php" think queue:work --queue="aa" --delay=0 --memory=128 --sleep=3 --tries=0" exceeded the timeout of 60 seconds.
解决方案:问题在 think\queue\command\Listen 的 configure() 方法中,手动将这个 timeout 改了,问题就解决了。
Zephir 文档地址:https://docs.zephir-lang.com/0.12/zh-cn
解决方法:安装 think-queue 1.1.6 版本
composer require topthink/think-queue 1.1.6
NMP 1.4或更高版本如果不想用防跨目录或者修改.user.ini的防跨目录的目录还需要将 /usr/local/nginx/conf/fastcgi.conf 里面的fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/"; 在该行行前添加 # 或删除改行,需要重启nginx。
出现此类问题一般为open_basedir的问题(open_basedir的值来设置限制访问的目录或删除来移除防跨目录的设置。)