CreateFile() "D:/web/weblogs/web.log" failed (3: The system cannot find the path specified)

¥10.00

Nginx里面配置web网站的日志文件路径 access_log  /web/weblogs/web.log;   重启Nginx后错误文件error.log里面报错:


CreateFile() "D:/web/weblogs/web.log" failed (3: The system cannot find the path specified)


检查后物理目录是存在的,不知道如何解决这个问题。



牵绊 T0 发布于2年前

最佳解决方案

原因分析

导致3: The system cannot find the path specified错误的原因有很多,可以从以下几个方面排查:
1、文件目录是否包含中文;2、文件目录是否存在;3、nginx脚本是否有权限创建文件

看你的问题描述,路径正确且无中文,那就要考虑权限问题了,你可以:

1、直接在相应目录下建好web.log文件,建个记事本然后重命名为web.og就可以了

2、以管理员身份启动脚本


花 梦 T0 被采纳率100%
2021-01-27 12:12
打赏 0 1
页面统计
2153 访问
0 帮助
0.00 打赏

hierror 2019 © hierror.com 京ICP备13026190号-1

通知消息
  • 暂无任何消息