Tag Archives: nginx: [alert] could not open error log file: open() “/usr/local/nginx/logs/error.log“ failed

[Solved] Nginx Startup Error: nginx: [alert] could not open error log file: open() “/usr/local/nginx/logs/error.log“ failed

Nginx Startup Error: nginx: [alert] could not open error log file: open() “/usr/local/nginx/logs/error.log“ failed

nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (2: No such file or directory)
2021/12/06 20:12:14 [emerg] 466858#0: mkdir() "/usr/local/nginx/client_body_temp" failed (2: No such file or directory)

Error Description: the error path is/use/local. It is found that the file location is inconsistent

Solution: move Nginx to local and start it again