php 7 编译安装 WARNING: Nothing matches the include pattern '/usr/local/php7.2.28/etc/php-fpm.d/*.conf'

今天在编译安装 php 7.2.28 时出现了这个错误:

[19-Mar-2020 11:49:56] WARNING: Nothing matches the include pattern '/usr/local/php7.2.28/etc/php-fpm.d/*.conf' from /usr/local/php7.2.28/etc/php-fpm.conf at line 125.
[19-Mar-2020 11:49:56] ERROR: No pool defined. at least one pool section must be specified in config file
[19-Mar-2020 11:49:56] ERROR: failed to post process the configuration
[19-Mar-2020 11:49:56] ERROR: FPM initialization failed

解决办法:
去到 php 的安装目录下的 /etc/php-fpm.d,我的目录为 /usr/local/php7.2.28/etc/php-fpm.d ,执行如下命令:

cp www.conf.default www.conf

结果:
php 7 编译安装 WARNING: Nothing matches the include pattern '/usr/local/php7.2.28/etc/php-fpm.d/*.conf'_第1张图片

你可能感兴趣的:(Centos6.8)