在用brew安装Nginx过程中发现php文件无法解析,后来定位到是php-fpm没有打开,当启动该进程的时间终端报错:
[ERROR: No pool defined. at least one pool section must be specified in config file]
[22-Sep-2015 14:29:00] WARNING: Nothing matches the include pattern ``'/usr/local/etc/php-fpm.d/*.conf'
from ``/opt/php7/etc/php-fpm``.conf at line 125.
[22-Sep-2015 14:29:00] ERROR: No pool defined. at least one pool section must be specified ``in
config ``file
[22-Sep-2015 14:29:00] ERROR: failed to post process the configuration
[22-Sep-2015 14:29:00] ERROR: FPM initialization failed
提示在 /usr/local/etc/php-fpm.d/目录下找不到配置文件。 进入该目录
解决方法
root@ubuntu:/usr/local/etc/php-fpm.d/# cp www.conf
复制该文件一份保存即可解决问题。
`root@ubuntu:~# sudo php-fpm