Mac php-fpm启动失败解决

启动:sudo php-fpm -D
Password:
[16-Aug-2019 10:37:32] ERROR: failed to open configuration file '/private/etc/php-fpm.conf': No such file or directory (2)
[16-Aug-2019 10:37:32] ERROR: failed to load configuration file '/private/etc/php-fpm.conf'
[16-Aug-2019 10:37:32] ERROR: FPM initialization failed


cd /private/etc/

cp php-fpm.conf.default php-fpm.conf


sudo php-fpm -D
[16-Aug-2019 10:39:24] WARNING: Nothing matches the include pattern '/private/etc/php-fpm.d/*.conf' from /private/etc/php-fpm.conf at line 125.
[16-Aug-2019 10:39:24] ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2)
[16-Aug-2019 10:39:24] ERROR: failed to post process the configuration
[16-Aug-2019 10:39:24] ERROR: FPM initialization failed


cd /private/etc/php-fpm.d
cp www.conf.default www.conf

sudo vim php-fpm.conf  将125 改为/private/etc/php-fpm.d/www.conf


sudo php-fpm -D


检查启动:ps aux|grep php-fpm

 

你可能感兴趣的:(mac,php-fpm)