nginx启动报错

nginx启动报错_第1张图片

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

2023/03/02 20:10:31 [emerg] 34700#9728: CreateFile() "D:\blob\MalVideo\back\micro-java-base-master\resources\softwares\nginx\nginx-gateway/logs/error.log" 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 cannot find the path specified)

2023/03/02 20:10:43 [emerg] 26784#13232: CreateDirectory() "D:\blob\MalVideo\back\micro-java-base-master\resources\softwares\nginx\nginx-gateway/temp/client_body_temp" failed (3: The system cannot find the path specified)

原因是没有temp和logs目录,手动创建就行

我的目录结构
nginx启动报错_第2张图片

你可能感兴趣的:(bug,nginx,java,服务器)