1. 程式人生 > >Nginx 安裝後 相關錯誤解決

Nginx 安裝後 相關錯誤解決

.net article 哪裏 details body mkdir config bsp true

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

Nginx 安裝後 相關錯誤解決