Home >php教程 >php手册 >php-fpm 启动报please specify user and group other than root, po

php-fpm 启动报please specify user and group other than root, po

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 09:57:262877browse

本文章来给大家介绍关于php-fpm 启动报please specify user and group other than root, pool ‘default’的解决办法。

安装PHP ,配置fpm 成功后启动发现报错:

Starting php_fpm Aug 03 06:51:54.269165 [ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool ‘default’

解决办法:

修改php-fpm.conf

 代码如下 复制代码

 
    Unix group of processes
 

修改成 nginx 指定的用户与组

 www
 Unix group of processes
 www

或者我们也可以这样配置

 代码如下 复制代码

改成


nobody

启用nobody用户选项,保存退出,然后再重新启动php-fpm:


修改启动:

 代码如下 复制代码

[root@localhost conf]# php-fpm start
Starting php_fpm  done

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn