gdx.nil?
14 years ago
請問有人知道為什麼 postgresql 剛開機會無法從 tcp 登入(從localhost登入都是沒問題的),要 service postgresql restart 才能登入嗎?
latest #9
gdx.nil?
14 years ago
google 找不太到關鍵字~"~
gdx.nil?
14 years ago
把 listen_addresses = '某個ip,localhost' 改成 listen_addresses = '*' 就解決了,為何~"~
gdx.nil?
14 years ago
restart 後沒問題的話照理來說設定應該是沒問題的? 還是 server 在啟動的時候還沒有 bind 到該 ip 位址?
立即下載
__CA__.py
14 years ago
gdx: 有可能 ... 看看 initscript 的 LSB header 有沒有 depend 到 $network, 或是可不可以 bind 到 0.0.0.0
gdx.nil?
14 years ago
legnaleurc: required start 有 $network
gdx.nil?
14 years ago
要如何查能不能 bind 到 0.0.0.0 呢 (thinking)?
__CA__.py
14 years ago
gdx: 就 ... bind 看看 XD, 其實我也對 postgresql 不熟
gdx.nil?
14 years ago
我剛剛測試,listen_addresses = '某個ip,localhost',開機後 0.0.0.0 是有在 listen 的,下 restart postgresql 才能遠端連到,而且這時候變成 127.0.0.1 和 內網IP 在 listen...
gdx.nil?
14 years ago
一整個很詭異,有空再來查資料好了...Orz
back to top