root@ubuntu:/opt/php7# /opt/php7/sbin/php-fpm [22-Sep-2015 14:29:00] WARNING: Nothing matches the include pattern '/opt/php7/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
大概意思就是說找不到 opt/php7/etc/php-fpm.d/目錄下的配置文件。 進入裏面的目錄,會有一個www.conf.default文件。執行下面命名複製一份php
root@ubuntu:/opt/php7/etc/php-fpm.d/# cp www.conf
複製好以後,編輯該文件html
root@ubuntu:/opt/php7/etc/php-fpm.d/# nano www.conf
定位到裏面文件的 user = nobody 和 group = nobody ,調整爲 www-data。這一步和5版編譯安裝同樣。最後啓動PHP-FPMubuntu
root@ubuntu:~# /opt/php7/sbin/php-fpm
原地址:http://www.cnblogs.com/xiaozong/p/5458169.htmlphp7