Mac 安装Nginx(ERROR: No pool defined. at least one pool section must be specified in config file)

在用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

参考:
http://www.cnblogs.com/xiaozong/p/5458169.html

    原文作者:一梦三四年lyp
    原文地址: https://www.jianshu.com/p/46769db6b307
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞