我有一個在虛擬環境(MAC OS)中運行的Django項目,我可以在哪裏訪問postgres日誌? 問這個問題之前,我特地到以下職位,但我找不到的地方記錄他們建議 * http://www.postgresql.org/docs/9.0/static/runtime-config-logging.html * How to check status of PostgreSQL server Mac OS X * http://www.postgresqlformac.com/server/error_startup_fails_after_i.html * Where are the PostgreSQL logs on Mac OS X?Django虛擬環境,Postgres的日誌在mac中保存在哪裏?
0
A
回答
2
您可以
find
它使用下面的命令:sudo find/-name pg_log
輸出:
/Library/PostgreSQL/9.2/data/pg_log
如果上述嘗試失敗,試圖找到在你的plist日誌位置
我的plist位於
/Library/LaunchDaemons/
,另一個可能的位置是/Library/LaunchAgents/
。檢查
com.edb.launchd.postgresql-9.2.plist
包含以下內容:<dict> ...... <key>StandardErrorPath</key> <string>/usr/local/var/postgres/server.log</string> </dict>
在上述情況下,日誌位於
/usr/local/var/postgres/server.log
相關問題
- 1. Anaconda Python:虛擬環境存儲在哪裏?
- 2. Python的虛擬環境Django
- 3. 混淆在python Django的虛擬環境
- 4. Django與虛擬環境
- 5. 當日志滿時,SAS在哪裏保存日誌文件?
- 6. 從Mac到Linux的虛擬環境
- 7. Mac上的虛擬環境與python 3.4
- 8. 虛擬內存地址在哪裏?
- 9. MAC OS X:MAMP環境與虛擬主機
- 10. Django日誌在哪裏登錄?
- 11. pinax/django在虛擬環境中的安裝,在mod_wsgi上運行
- 12. 在Mac上的虛擬環境中安裝PyQt4
- 13. Vagrant保存更改到虛擬機的位置在哪裏?
- 14. Python 2.7在虛擬環境中的SyntaxError
- 15. 如何在mac命令行中返回python虛擬環境
- 16. golang環境變量存儲在哪裏?
- 17. HRegionServer的日誌在哪裏?
- 18. 上傳在Github上虛擬環境中設置的Django項目
- 19. 虛擬化環境
- 20. Javascript虛擬環境?
- 21. Android在哪裏存儲關機日誌?
- 22. 診斷/日誌存儲表在哪裏?
- 23. phpmyadmin操作日誌存儲在哪裏?
- 24. Log4Net在哪裏存儲日誌?
- 25. CVS日誌文件存儲在哪裏?
- 26. 在虛擬環境中運行Hadoop
- 27. 在python2虛擬環境中安裝python3
- 28. 在虛擬環境中安裝unohelper
- 29. 在PyCharm中設置虛擬環境
- 30. 無法在anaconda虛擬環境中使用django導入和使用熊貓虛擬環境
你應該先搜索之前提交問題的http://計算器。 com/questions/2563494/where-postgresql-logs-are-mac-os-x – anhtran
我查看了那些帖子,但是我找不到它! – name
我想你可能會嘗試通過自制軟件http://brew.sh/安裝它。這很容易。 – anhtran