PostgreSQL 8.4 開啟遠端連線方式(Remote TCP/IP connections)

2011/07/15 張貼者: Damon.Huang
預設 PostgreSQL 不開放由本機以外的主機連線,因此如果要由其他主機連線時,需要做以下的設定:

編輯 postgresql.conf
# vi /etc/postgresql/8.4/main/postgresql.conf
找到下面這一段
#listen_addresses = 'localhost'    => 預設是 localhost
改為   
listen_addresses = '*'             => for all 
Restarting Service
# service postgresql restart

Reference

標籤:

張貼留言

技術提供:Blogger.