码迷,mamicode.com
首页 > 其他好文 > 详细

nginx: [emerg] getpwnam(“www”) failed

时间:2018-11-14 14:34:11      阅读:117      评论:0      收藏:0      [点我收藏+]

标签:收集   and   解决   get   应该   line   错误   div   exp   

在安装nginx报  [emerg] getpwnam(“www”) failed 的错误,解决方法收集如下:

解决方法1: 在nginx.conf中 把user nobody的注释去掉既可

解决方法2: 错误的原因是没有创建www这个用户,应该在服务器系统中添加www用户组和用户www,如下命令:

#/usr/sbin/groupadd -f www
#/usr/sbin/useradd -g www www

  

 

nginx: [emerg] getpwnam(“www”) failed

标签:收集   and   解决   get   应该   line   错误   div   exp   

原文地址:https://www.cnblogs.com/coder-zyc/p/9957274.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!