原文:Windows7安装nginx后,'nginx -t -c nginx.conf' 命令出现 “could not open error log file: CreateFile() "logs/error.log" failed” 错误的原因

网上搜索安装nginx的方法,按照步骤在 http: nginx.org en download.html 下载了安装包,并配置了conf nginx.conf,将nginx的根目录添加进了环境变量path中 打开命令行,进入 D: nginx . . conf 目录,执行如下命令验证配置文件的正确性: nginx t c nginx.conf 结果提示错误: 并且运行如下命令: nginx t ...

2018-08-31 08:35 1 11774 推荐指数:

查看详情

Nginx命令报错:nginx [alert] could not open error log file CreateFile()

问题 配置了 nginx 环境变量,打开cmd运行 nginx ,发现 nginx 大部分命令都出错了 分析 无法打开错误日志文件logs/,可文件明明就在 查看配置文件nginx.conf 启动的文件是在当前目录下,也就是相对路径 解决 当我切回到 nginx ...

Sat May 15 04:37:00 CST 2021 0 5627
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM