1. 程式人生 > >nginx報錯

nginx報錯

failed file

【問題1】:啟動nginx時報以下錯誤

[[email protected] nginx]# /application/nginx/sbin/nginx 
nginx: [alert] could not open error log file: open() "/application/nginx-1.6.3/logs/error.log" failed (2: No such file or directory)
2017/05/17 07:17:43 [emerg] 6504#0: open() "/application/nginx-1.6.3/logs/access.log" failed (2: No such file or directory)

解決辦法:按照提示創建錯誤日誌文件

mkdir -p /application/nginx-1.6.3/logs/error.log




本文出自 “12300166” 博客,請務必保留此出處http://12310166.blog.51cto.com/12300166/1926771

nginx報錯