Nginx启动报错:nginx: [alert] could not open error log file: open() “/usr/local/nginx/logs/error.log“ failed
Nginx启动报错: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)
错误说明:报错的路径说是/use/local,发现文件位置不一致
解决方法:将nginx移到local下,再次启动就可以了