1、php-fpm
ERROR: failed to load configuration file '/private/etc/php-fpm.conf'
解决:
cp /private/etc/php-fpm.conf.default /usr/local/etc/php-fpm.conf
2、php-fpm --fpm-config /usr/local/etc/php-fpm.conf
ERROR: failed to open error_log (/usr/var/log/php-fpm.log)
解决:
vim /usr/local/etc/php-fpm.conf
修改
error_log = /usr/local/var/log/php-fpm.log
pid = /usr/local/var/run/php-fpm.pid
3、php-fpm --fpm-config /usr/local/etc/php-fpm.conf --prefix /usr/local/var
ERROR: No pool defined. at least one pool section must be specified in config file
解决:
进入/private/etc/php-fpm.d
cp www.conf.default www.conf