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