nginx常见错误及解决方法介绍


本文摘自PHP中文网,作者V,侵删。

nginx中常见的错误及解决方法有:

报错一:

1

nginx: [error] CreateFile() "C:\mytools\nginx-1.8.1/logs/nginx.pid" failed (2: The system cannot find the file specified)

或者

1

nginx: [error] Open() "C:\mytools\nginx-1.8.1/logs/nginx.pid" failed

解决方法:

使用命令创建/logs/nginx.pid文件

1

nginx -c conf/nginx.conf

报错二:

1

2

nginx: [alert] could not open error log file: CreateFile() "logs/error.log" failed (3: The system cannot find the path specified)

 [emerg] : invalid number of arguments in "root" directive in C:\mytools\nginx-1.8.1\conf\nginx.conf:45

解决方法:

配置文件root指定一个目录的时候最末尾不能是"\"。

相关推荐:nginx教程

以上就是nginx常见错误及解决方法介绍的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

linux如何查看nginx是否启动

nginx为什么比apache快

nginx为什么会出现404

nginx怎么下载

编译安装nginx却requires the pcre library

提高nginx安全性方法

命令行方式启动nginx

nginx的配置文件在哪个目录下

linux如何查看nginx是否启动

aws s3存储桶错误配置――百万个人信息泄露

更多相关阅读请进入《nginx》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...