please specify user and group other than root, pool 'default'

  1. 云栖社区>
  2. 博客>
  3. 正文

please specify user and group other than root, pool 'default'

rrr1111 发布时间:2014-07-13 00:54:00 浏览530 评论0

摘要:  [root@luozhonghua etc]# /usr/local/php/sbin/php-fpm start Starting php_fpm Jul 12 09:41:02.077951 [ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool 'defau

 

[root@luozhonghua etc]# /usr/local/php/sbin/php-fpm start

Starting php_fpm Jul 12 09:41:02.077951 [ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool 'default'


[root@luozhonghua etc]# vi php-fpm.conf  

  找到 

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

默认与nginx.conf 用户名 一致,都为nobody修改为:

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

[root@luozhonghua etc]# /usr/local/php/sbin/php-fpm start

Starting php_fpm . done

[root@luozhonghua etc]#

php_fpm 启动成功!



【云栖快讯】云栖专辑 | 阿里开发者们的第20个感悟:好的工程师为人写代码,而不仅是为编译器  详情请点击

网友评论