|
pgsql 外部からの接続許可
|
|
|
外部にあるpgsqlサーバーを利用する際の
接続される pgsqlサーバーの設定です。 |
|
|
|
|
設定
|
|
DBサーバー
|
pgsql 外部からの接続許可
|
| |
|
|
|
|
|
pg_hba.conf を 編集************************************************
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only local all all trust # IPv4 local connections: #host all all 127.0.0.1/32 trust host all all 192.168.11.127 255.255.255.0 trust
# IPv6 local connections: host all all ::1/128 trust
postgresql.conf を編集 ****************************************************
#--------------------------------------------------------------------------- # CONNECTIONS AND AUTHENTICATION #---------------------------------------------------------------------------
# - Connection Settings -
listen_addresses = '*' # what IP interface(s) to listen on; # defaults to localhost, '*' = any port = 5432
|
|
|