原文:Windows7安裝nginx后,'nginx -t -c nginx.conf' 命令出現 “could not open error log file: CreateFile() "logs/error.log" failed” 錯誤的原因

網上搜索安裝nginx的方法,按照步驟在 http: nginx.org en download.html 下載了安裝包,並配置了conf nginx.conf,將nginx的根目錄添加進了環境變量path中 打開命令行,進入 D: nginx . . conf 目錄,執行如下命令驗證配置文件的正確性: nginx t c nginx.conf 結果提示錯誤: 並且運行如下命令: nginx t ...

2018-08-31 08:35 1 11774 推薦指數:

查看詳情

Nginx命令報錯:nginx [alert] could not open error log file CreateFile()

問題 配置了 nginx 環境變量,打開cmd運行 nginx ,發現 nginx 大部分命令都出錯了 分析 無法打開錯誤日志文件logs/,可文件明明就在 查看配置文件nginx.conf 啟動的文件是在當前目錄下,也就是相對路徑 解決 當我切回到 nginx ...

Sat May 15 04:37:00 CST 2021 0 5627
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM