首页 > 其他 > 详细

Nginx 安装后 相关错误解决

时间:2019-02-20 19:07:41      阅读:156      评论:0      收藏:0      [点我收藏+]

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 安装后 相关错误解决

原文:https://www.cnblogs.com/Clymene/p/10408454.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!