Nginx 安装后 相关错误解决

1,安装 https://blog.csdn.net/wxyjuly/article/details/79443432

  nobody 改为了 www

  

/configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-http_sub_module --with-http_ssl_module

  

2,nginx: [emerg] getpwnam(“www”) failed 错误处理方法

  1,nginx user 哪里改为 www

  2,/usr/sbin/groupadd -f www      /usr/sbin/useradd -g www www

  3,将注释放开,并修改为:pid    /usr/local/nginx/logs/nginx.pid;     mkdir /usr/local/nginx/logs

  4,/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

posted @ 2019-02-20 18:57  Clymene  阅读(127)  评论(0编辑  收藏  举报