在下载解压后,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)

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

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

 添加两个文件夹如下

 重新运行,不在报错

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

() 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐