nginx: [alert] could not open error log file: CreateFile() “logs/error.log“ failed (3: The system ca

在下载解压后,cmd运行后报错

nginx: [alert] could not open error log file: CreateFile() "logs/error.log" failed (3: The system cannot find the path specified)
2023/07/15 22:30:30 [emerg] 6512#3332: CreateDirectory() "D:\ssm\nginx-1.18.0/temp/client_body_temp" failed (3: The system cannot find the path specified)

nginx: [alert] could not open error log file: CreateFile() “logs/error.log“ failed (3: The system ca_第1张图片

我自己查看了很多回答,跟我的都有些出入,我把我的解决方案写在此吧

查看了压缩后的目录,发现少了两个

nginx: [alert] could not open error log file: CreateFile() “logs/error.log“ failed (3: The system ca_第2张图片

 添加两个文件夹如下

nginx: [alert] could not open error log file: CreateFile() “logs/error.log“ failed (3: The system ca_第3张图片

 重新运行,不在报错

nginx: [alert] could not open error log file: CreateFile() “logs/error.log“ failed (3: The system ca_第4张图片

 访问端口(默认),成功解决

nginx: [alert] could not open error log file: CreateFile() “logs/error.log“ failed (3: The system ca_第5张图片

() 

你可能感兴趣的:(java,javascript,前端)