Jquery中文网 www.jquerycn.cn
Jquery中文网 >  脚本编程  >  php  >  正文 php-fpm 启动报please specify user and group other than root, pool ‘default’

php-fpm 启动报please specify user and group other than root, pool ‘default’

发布时间:2018-11-11   编辑:www.jquerycn.cn
jquery中文网为您提供php-fpm 启动报please specify user and group other than root, pool ‘default’等资源,欢迎您收藏本站,我们将为您提供最新的php-fpm 启动报please specify user and group other than root, pool ‘default’资源
本文章来给大家介绍关于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

<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy5281')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy5281>

 <!--  <value name="user">nobody</value>   -->
    Unix group of processes
 <!--  <value name="group">nobody</value>   -->

修改成 nginx 指定的用户与组

 <value name="user">www</value>
 Unix group of processes
 <value name="group">www</value>

或者我们也可以这样配置

<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy4973')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy4973>

<!-- <value name="user">nobody</value> -->

改成


<value name="user">nobody</value>

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


修改启动:

<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy3043')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy3043>

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

您可能感兴趣的文章:
php-fpm 启动报please specify user and group other than root, pool ‘default’
PHP中Redis扩展无法加载问题
php扩展安装不生效
nodejs中使用mysql数据库的示例
php-fpm7.0 慢查询设置及说明
Docker 安装 PHP
浅析php-fpm 和 mysql 之间的关系详解
使用Docker部署PHP开发环境的方法详解
centos下mysql 5.6.13源码安装方法
php配置文件有哪些

[关闭]