nginx: [emerg] getpwnam("nobody") failed

【问题】

nginx -t #校验配置下,出现如下错误

nginx: [emerg] getpwnam("nobody") failed

【解决方案】

网上比较多的说法是nobody这个用户不存在,但在用户存在的情况下仍然会报错

安装nscd ,yum -y install nscd

Nscd provides cacheing for accesses of the passwd(5), group(5), and hosts(5) databases through standard libc interfaces, such as getpwnam(3), getpwuid(3), getgrnam(3), getgrgid(3), gethostbyname(3), and others

引用:

http://www.tutorialspoint.com/unix_commands/nscd.htm

你可能感兴趣的:(nginx)