php7安装完成后,启动php-fpm报错提示:
ERROR: failed to open configuration file '/usr/local/php/etc/php-fpm.conf': No such file or directory (2),
[23-Mar-2023 20:26:24] ERROR: failed to open configuration file '/usr/local/php/etc/php-fpm.conf': No such file or directory (2)
原因:php-fpm 没有配置文件
解决方案:
进入/usr/local/php/etc目录
cp php-fpm.conf.default php-fpm.conf
再次启动的时候依然报错,开始提示:
*WARNING: Nothing matches the include pattern '/usr/local/php/etc/php-fpm.d/.conf' from /usr/local/php/etc/php-fpm.conf at line 143.
解决方案: 复制一份php-fpm的www.conf文件
cd /usr/local/php/etc/php-fpm.d/
cp www.conf.default www.conf
还没有人发表评论