1
我在我的新的macbook pro上設置postgresql/pgadmin。然而,當我註冊一個新的服務器,我得到的錯誤:postgresql/pgAdmin - 服務器不聽問題
Server doesn't listen
The server doesn't accept connections: the connection library reports
could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
我瀏覽這個問題,顯然答案是編輯pg_hba.conf
文件。但是,我需要幫助:
1)如何找到&打開該文件?
2)一旦我打開它,我需要添加哪些語句來解決該問題?
有人可以幫忙嗎?
在此先感謝!
文件和它的位置和語法是記錄在手冊中:https://www.postgresql.org/docs/current/static/client-authentication.html參見[這裏](https://開頭stackoverflow.com/search?q=[postgresql]+[pgadmin]+Is+the+server+running+on+host+%22localhost%22) –