nginx 常见问题

  • 报错:   nginx: [emerg] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory) ; 没有nginx文件夹导致

    •   解决:创建对应文件夹  mkdier  /var/run/nginx
  • 报错:   nginx:[error] invalid PID nnumber "" in "/var/run/nginx/nginx.pid"
    •   解决:重新指定nginx.conf文件  ./nginx -c /user/local/nginx/conf/nginx.conf
posted @ 2021-03-11 10:51  人间草木~  阅读(50)  评论(0编辑  收藏  举报