我从源头安装了nginx。我执行了配置它的步骤。
tar -xvf nginx-1.8.0.tar.gz
cd nginx-1.8.0/
./configure --prefix=/home/jegan/nginx-1.8.0/nginx --sbin-path=/home/jegan/nginx-1.8.0/nginx/sbin/nginx --conf-path=/home/jegan/nginx-1.8.0/nginx/conf/nginx.conf --pid-path=/home/jegan/nginx-1.8.0/nginx/logs/nginx.pid --error-log-path=/home/jegan/nginx-1.8.0/nginx/logs/error.log --http-log-path=/home/jegan/nginx-1.8.0/nginx/logs/access.log
make
sudo make install在这些步骤之后,我开始了nginx。它成功地运行了。我得到了以下结果:
root 13928 1385 0 10:57 ? 00:00:00 nginx: master process /home/jegan/nginx-1.8.0/nginx/sbin/nginx
nobody 13929 13928 0 10:57 ? 00:00:00 nginx: worker process
jegan 13934 10653 0 10:57 pts/0 00:00:00 grep --color=auto nginx当我在mass文件中的user指令中将工作进程的用户名更改为nginx.conf时,将得到以下错误
nginx: [emerg] getpwnam("mass") failed in /home/jegan/nginx-1.8.0/nginx/conf/nginx.conf:2为什么我会犯这个错误?
发布于 2015-08-24 05:51:07
该错误意味着系统上没有名为mass的用户。
https://serverfault.com/questions/716211
复制相似问题