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: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: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: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資料夾,然後啟動發現成功了