at least one pool section must be specified in config file

PHP启动不了,提示:
ERROR: No pool defined. at least one pool section must be specified in config file
[21-Feb-2022 11:30:43] ERROR: failed to post process the configuration
[21-Feb-2022 11:30:43] ERROR: FPM initialization failed
failed

解决方案:
进入其他可启动的PHP版本里面,如 /www/wdlinux/phps/71/etc,复制  php-fpm.conf  这个文件内容,把里面出现的 “71” 都改成相应的版本,粘贴到要使用的PHP版本里面即可

[global]
pid = /www/wdlinux/phps/73/var/run/php-fpm.pid
error_log = /www/wdlinux/phps/73/var/log/php-fpm.log
log_level = notice
[www]
listen = /tmp/php-73-cgi.sock
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
listen.owner = www
listen.group = www
listen.mode = 0666
user = www
group = www
pm = dynamic
pm.max_children = 12
pm.start_servers = 2
pm.min_spare_servers = 2
pm.max_spare_servers = 6
pm.max_requests = 2000
request_terminate_timeout = 60


posted on 2022-03-14 09:59  断掌  阅读(150)  评论(0编辑  收藏  举报

导航