php-fpm 启动报错 the master process didn't send back its status
最近手上一台 centos6 上面的 php-fpm 启动失败,报错提示 the master process didn't send back its status (via the pipe to the calling process)
。
把 php 的 pecl 扩展全部注释掉后能启动,加上 redis、swoole 这些扩展后就启动失败并报错 the master process didn't send back its status (via the pipe to the calling process)
。意思是主进程没有返回其状态(通过管道发送到调用进程)。
这是 pecl 动态扩展导致的问题,将 PECL 扩展库静态编译入 PHP,问题解决。
将 pecl 扩展包解压至 php 源码包的 ext 文件中,然后强制 PHP 生成配置脚本,然后正常编译 PHP:
mv configure configure.bak
./buildconf --force
./buildconf --help 查看扩展的相关选项
这里我装的是redis
./configure --enable-redis
编译完成,完美
make
make install
好了,这样问题解决。