当使用 pgsql 数据库时,会报错 exit with status 11。
config/database.php
<?php
return [
// 默认数据库
'default' => 'pgsql',
// 各种数据库配置
'connections' => [
'pgsql' => [
'driver' => 'pgsql',
'host' => '127.0.0.1',
'port' => 5432,
'database' => 'db_name',
'username' => 'postgres',
'password' => 'gxz-pwd',
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'sslmode' => 'prefer',
],
],
];
worker[xxx:16448] exit with status 11
操作系统:MacOS 14.4 (23E214), M3 Max arm64
(base) gxz enneatao-api % php -v
PHP 8.3.4 (cli) (built: Mar 12 2024 23:42:26) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.4, Copyright (c) Zend Technologies
with Zend OPcache v8.3.4, Copyright (c), by Zend Technologies
"workerman/webman-framework": "^1.5.0",
一般是用了不稳定的php版本或者扩展导致php coredump了