摘要:Postgresql and TCP/IP connections on port 5432
Postgresql and TCP/IP connections on port 5432
>>find -iname postgresql.conf
Locate “listen_addresses” in your configuration and cange its value from
localhost
to
*
>>find -iname pg_hba.conf
Change
127.0.0.1/32
into
0.0.0.0/0
We now have to restart our postgresql server. Open your terminal and enter:
1
|
psql -h localhost mydb
|