PHP error:ERROR: No pool defined. at least one pool section must be specified in config file
2017-07-17 15:57
1376 查看
如题所示的报错发生在php-fpm启动的过程中,具体如下:
[root@linuxme php-7.0.9]# pwd
/usr/local/php-7.0.9
[root@linuxme php-7.0.9]#
[root@linuxme php-7.0.9]# ls -ltr
total 28
drwxr-xr-x 3 root root 4096 Aug 16 10:14 lib
drwxr-xr-x 4 root root 4096 Aug 16 10:14 var
drwxr-xr-x 2 root root 4096 Aug 16 10:14 sbin
drwxr-xr-x 4 root root 4096 Aug 16 10:14 php
drwxr-xr-x 3 root root 4096 Aug 16 10:14 include
drwxr-xr-x 2 root root 4096 Aug 16 10:14 bin
drwxr-xr-x 3 root root 4096 Aug 16 10:24 etc
[root@linuxme php-7.0.9]#
[root@linuxme php-7.0.9]# sbin/php-fpm
[16-Aug-2016 10:26:28] WARNING: Nothing matches the include pattern '/usr/local/php-7.0.9/etc/php-fpm.d/*.conf' from /usr/local/php-7.0.9/etc/php-fpm.conf at line 125.
[16-Aug-2016 10:26:28] ERROR: No pool defined. at least one pool section must be specified in config file
[16-Aug-2016 10:26:28] ERROR: failed to post process the configuration
[16-Aug-2016 10:26:28] ERROR: FPM initialization failed
[root@linuxme php-7.0.9]#
造成该问题的原因是:
路径【/usr/local/php-7.0.9/etc/php-fpm.d/】下没有找到【*.conf】的配置文件(config file)。
如下:
[root@linuxme php-7.0.9]# cd /usr/local/php-7.0.9/etc/php-fpm.d/
[root@linuxme php-fpm.d]# ls -ltr
total 20
-rw-r--r-- 1 root root 18536 Aug 16 10:14 www.conf.default
[root@linuxme php-fpm.d]#
修复:
Oracle PL/SQL
[root@linuxme php-fpm.d]# pwd
/usr/local/php-7.0.9/etc/php-fpm.d
[root@linuxme php-fpm.d]# ls
www.conf.default
[root@linuxme php-fpm.d]# cp www.conf.default www.conf
[root@linuxme php-fpm.d]#
[root@linuxme php-fpm.d]# ls -ltr
total 40
-rw-r--r-- 1 root root 18536 Aug 16 10:29 www.conf.default
-rw-r--r-- 1 root root 18536 Aug 16 10:29 www.conf
[root@linuxme php-fpm.d]#
然后再次尝试启动PHP:
[root@linuxme php-fpm.d]# /usr/local/php-7.0.9/sbin/php-fpm
[root@linuxme php-fpm.d]#
[root@linuxme php-fpm.d]# ps -ef | grep --color php
root 13291 1 0 10:29 ? 00:00:00 php-fpm: master process (/usr/local/php-7.0.9/etc/php-fpm.conf)
nobody 13292 13291 0 10:29 ? 00:00:00 php-fpm: pool www
nobody 13293 13291 0 10:29 ? 00:00:00 php-fpm: pool www
root 13295 26846 0 10:29 pts/0 00:00:00 grep --color php
[root@linuxme php-fpm.d]#
[root@linuxme php-fpm.d]# netstat -tupln | grep --color php
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 13291/php-fpm
[root@linuxme php-fpm.d]#
这样就没有问题了。
——————————————————————
Done。
来源:http://d-prototype.com/archives/6230
[root@linuxme php-7.0.9]# pwd
/usr/local/php-7.0.9
[root@linuxme php-7.0.9]#
[root@linuxme php-7.0.9]# ls -ltr
total 28
drwxr-xr-x 3 root root 4096 Aug 16 10:14 lib
drwxr-xr-x 4 root root 4096 Aug 16 10:14 var
drwxr-xr-x 2 root root 4096 Aug 16 10:14 sbin
drwxr-xr-x 4 root root 4096 Aug 16 10:14 php
drwxr-xr-x 3 root root 4096 Aug 16 10:14 include
drwxr-xr-x 2 root root 4096 Aug 16 10:14 bin
drwxr-xr-x 3 root root 4096 Aug 16 10:24 etc
[root@linuxme php-7.0.9]#
[root@linuxme php-7.0.9]# sbin/php-fpm
[16-Aug-2016 10:26:28] WARNING: Nothing matches the include pattern '/usr/local/php-7.0.9/etc/php-fpm.d/*.conf' from /usr/local/php-7.0.9/etc/php-fpm.conf at line 125.
[16-Aug-2016 10:26:28] ERROR: No pool defined. at least one pool section must be specified in config file
[16-Aug-2016 10:26:28] ERROR: failed to post process the configuration
[16-Aug-2016 10:26:28] ERROR: FPM initialization failed
[root@linuxme php-7.0.9]#
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | [root@linuxme php-7.0.9]# pwd /usr/local/php-7.0.9 [root@linuxme php-7.0.9]# [root@linuxme php-7.0.9]# ls -ltr total 28 drwxr-xr-x 3 root root 4096 Aug 16 10:14 lib drwxr-xr-x 4 root root 4096 Aug 16 10:14 var drwxr-xr-x 2 root root 4096 Aug 16 10:14 sbin drwxr-xr-x 4 root root 4096 Aug 16 10:14 php drwxr-xr-x 3 root root 4096 Aug 16 10:14 include drwxr-xr-x 2 root root 4096 Aug 16 10:14 bin drwxr-xr-x 3 root root 4096 Aug 16 10:24 etc [root@linuxme php-7.0.9]# [root@linuxme php-7.0.9]# sbin/php-fpm [16-Aug-2016 10:26:28] WARNING: Nothing matches the include pattern '/usr/local/php-7.0.9/etc/php-fpm.d/*.conf' from /usr/local/php-7.0.9/etc/php-fpm.conf at line 125. [16-Aug-2016 10:26:28] ERROR: No pool defined. at least one pool section must be specified in config file [16-Aug-2016 10:26:28] ERROR: failed to post process the configuration [16-Aug-2016 10:26:28] ERROR: FPM initialization failed [root@linuxme php-7.0.9]# |
路径【/usr/local/php-7.0.9/etc/php-fpm.d/】下没有找到【*.conf】的配置文件(config file)。
如下:
[root@linuxme php-7.0.9]# cd /usr/local/php-7.0.9/etc/php-fpm.d/
[root@linuxme php-fpm.d]# ls -ltr
total 20
-rw-r--r-- 1 root root 18536 Aug 16 10:14 www.conf.default
[root@linuxme php-fpm.d]#
1 2 3 4 5 | [root@linuxme php-7.0.9]# cd /usr/local/php-7.0.9/etc/php-fpm.d/ [root@linuxme php-fpm.d]# ls -ltr total 20 -rw-r--r-- 1 root root 18536 Aug 16 10:14 www.conf.default [root@linuxme php-fpm.d]# |
Oracle PL/SQL
[root@linuxme php-fpm.d]# pwd
/usr/local/php-7.0.9/etc/php-fpm.d
[root@linuxme php-fpm.d]# ls
www.conf.default
[root@linuxme php-fpm.d]# cp www.conf.default www.conf
[root@linuxme php-fpm.d]#
[root@linuxme php-fpm.d]# ls -ltr
total 40
-rw-r--r-- 1 root root 18536 Aug 16 10:29 www.conf.default
-rw-r--r-- 1 root root 18536 Aug 16 10:29 www.conf
[root@linuxme php-fpm.d]#
1 2 3 4 5 6 7 8 9 10 11 | [root@linuxme php-fpm.d]# pwd /usr/local/php-7.0.9/etc/php-fpm.d [root@linuxme php-fpm.d]# ls www.conf.default [root@linuxme php-fpm.d]# cp www.conf.default www.conf [root@linuxme php-fpm.d]# [root@linuxme php-fpm.d]# ls -ltr total 40 -rw-r--r-- 1 root root 18536 Aug 16 10:29 www.conf.default -rw-r--r-- 1 root root 18536 Aug 16 10:29 www.conf [root@linuxme php-fpm.d]# |
[root@linuxme php-fpm.d]# /usr/local/php-7.0.9/sbin/php-fpm
[root@linuxme php-fpm.d]#
[root@linuxme php-fpm.d]# ps -ef | grep --color php
root 13291 1 0 10:29 ? 00:00:00 php-fpm: master process (/usr/local/php-7.0.9/etc/php-fpm.conf)
nobody 13292 13291 0 10:29 ? 00:00:00 php-fpm: pool www
nobody 13293 13291 0 10:29 ? 00:00:00 php-fpm: pool www
root 13295 26846 0 10:29 pts/0 00:00:00 grep --color php
[root@linuxme php-fpm.d]#
[root@linuxme php-fpm.d]# netstat -tupln | grep --color php
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 13291/php-fpm
[root@linuxme php-fpm.d]#
1 2 3 4 5 6 7 8 9 10 11 | [root@linuxme php-fpm.d]# /usr/local/php-7.0.9/sbin/php-fpm [root@linuxme php-fpm.d]# [root@linuxme php-fpm.d]# ps -ef | grep --color php root 13291 1 0 10:29 ? 00:00:00 php-fpm: master process (/usr/local/php-7.0.9/etc/php-fpm.conf) nobody 13292 13291 0 10:29 ? 00:00:00 php-fpm: pool www nobody 13293 13291 0 10:29 ? 00:00:00 php-fpm: pool www root 13295 26846 0 10:29 pts/0 00:00:00 grep --color php [root@linuxme php-fpm.d]# [root@linuxme php-fpm.d]# netstat -tupln | grep --color php tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 13291/php-fpm [root@linuxme php-fpm.d]# |
——————————————————————
Done。
来源:http://d-prototype.com/archives/6230
相关文章推荐
- ERROR: No pool defined. at least one pool section must be specified in config file
- centos 16安装PHP7.0 异常 No pool defined. at least one pool section must be specified in config file
- "Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.".
- Error creating assembly archive pack: You must set at least one file.
- java.lang.IllegalArgumentException: At least one handler method must be found in class [class SayThr
- Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id
- 创建JPA工程时提示:at least one user library must be selected
- the public type xxx must be defined in its own file
- 1、创建一个JPA project(解决“at least one user library must be selected”问题)
- 出现:Package name must be specified.错误,提示要Package name 出现:Package name must have at least two identifi
- JAVA错误:The public type *** must be defined in its own file***
- xcode 4.2 itunes上传时 At least one of the following architecture(s) must be present: armv6 (-19033)
- android The public type classname must be defined in its own file 报错
- 创建JPA工程时提示:at least one user library must be selected
- the public type xxx must be defined in its own file
- JQuery 错误提示:HierarchyRequestError: Node cannot be inserted at the specified point in the hierarchy
- [Python]解析.ini 文件出错ConfigParser.MissingSectionHeaderError: File contains no section headers.
- IAR遇到问题Error[e72]: Segment XDATA_HEAP must be defined in a segment definition option (-Z, -b or -P)
- HierarchyRequestError:Nodecannotbeinsertedatthespecifiedpointinthe