nginx: [error] OpenEvent(“Global\ngx_reload_15484“) failed

nginx启动后修改配置文件重启报错

D:\MyProgramFiles\nginx-1.17.9>nginx -s reload
nginx: [error] OpenEvent("Global\ngx_reload_15484") failed (2: The system cannot find the file specified)

 

打开日志文件,发现还没启动成功

2020/10/19 18:07:22 [emerg] 2080#22596: CreateDirectory() "D:\MyProgramFiles\nginx-1.17.9/temp/client_body_temp" failed (3: The system cannot find the path specified)
2020/10/19 18:09:02 [emerg] 23080#20456: CreateDirectory() "D:\MyProgramFiles\nginx-1.17.9/temp/client_body_temp" failed (3: The system cannot find the path specified)
2020/10/19 18:09:30 [notice] 8256#23120: signal process started
2020/10/19 18:09:30 [error] 8256#23120: OpenEvent("Global\ngx_quit_15484") failed (2: The system cannot find the file specified)
2020/10/19 18:09:44 [emerg] 9256#22452: CreateDirectory() "D:\MyProgramFiles\nginx-1.17.9/temp/client_body_temp" failed (3: The system cannot find the path specified)
2020/10/19 18:16:28 [notice] 25192#7148: signal process started
2020/10/19 18:16:28 [error] 25192#7148: OpenEvent("Global\ngx_reload_15484") failed (2: The system cannot find the file specified)
2020/10/19 18:17:57 [emerg] 24476#23936: CreateDirectory() "D:\MyProgramFiles\nginx-1.17.9/temp/client_body_temp" failed (3: The system cannot find the path specified)
2020/10/19 18:18:04 [notice] 24072#24076: signal process started
2020/10/19 18:18:04 [error] 24072#24076: OpenEvent("Global\ngx_reload_15484") failed (2: The system cannot find the file specified)

解决办法:

手动创建temp文件夹,然后启动发现成功了

nginx: [error] OpenEvent(“Global\ngx_reload_15484“) failed

nginx: [error] OpenEvent(“Global\ngx_reload_15484“) failed