Nginx启动报错:nginx: [alert] could not open error log file: open() “/usr/local/nginx/logs/error.log“ fai

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启动报错:nginx: [alert] could not open error log file: open() “/usr/local/nginx/logs/error.log“ fai

 

 解决方法:将nginx移到local下,再次启动就可以了

Nginx启动报错:nginx: [alert] could not open error log file: open() “/usr/local/nginx/logs/error.log“ fai

 

上一篇:5.文件操作


下一篇:NET MVC全局异常处理(一) 【转载】网站遭遇DDoS攻击怎么办 使用 HttpRequester 更方便的发起 HTTP 请求 C#文件流。 Url的Base64编码以及解码 C#计算字符串长度,汉字算两个字符 2019周笔记(2.18-2.23) Mysql语句中当前时间不能直接使用C#中的Date.Now传输 Mysql中Count函数的正确使用