Postgresql connection on suse 10

Started by Michal Hlavacover 20 years ago5 messagesgeneral
Jump to latest
#1Michal Hlavac
hlavki@hlavki.sk

hello,

I installed PostgreSQL 8.0.3 on Suse 10 (x86_64).

Firewall is down.

telnet localhost 5432 result:

xxxxx:/var # telnet localhost 5432
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

but telnet ip_address 5432 result:

xxxxx: # telnet 158.195.xx.xx 5432
Trying 158.195.xx.xx...
telnet: connect to address 158.195.xx.xx: Connection refused

Why I cannot connect to ip address??????
I tried to add line to pg_hba.conf, then restart, but no change...

thanks, miso

#2Leonel Nunez
lnunez@enelserver.com
In reply to: Michal Hlavac (#1)
Re: Postgresql connection on suse 10

Michal Hlavac wrote:

hello,

I installed PostgreSQL 8.0.3 on Suse 10 (x86_64).

Firewall is down.

telnet localhost 5432 result:

xxxxx:/var # telnet localhost 5432
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

but telnet ip_address 5432 result:

xxxxx: # telnet 158.195.xx.xx 5432
Trying 158.195.xx.xx...
telnet: connect to address 158.195.xx.xx: Connection refused

Why I cannot connect to ip address??????
I tried to add line to pg_hba.conf, then restart, but no change...

thanks, miso

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

edit your postgresql.conf and
set the listen_address variable to your needs

leonel

#3Doug McNaught
doug@mcnaught.org
In reply to: Michal Hlavac (#1)
Re: Postgresql connection on suse 10

Michal Hlavac <hlavki@hlavki.sk> writes:

but telnet ip_address 5432 result:

xxxxx: # telnet 158.195.xx.xx 5432
Trying 158.195.xx.xx...
telnet: connect to address 158.195.xx.xx: Connection refused

Why I cannot connect to ip address??????
I tried to add line to pg_hba.conf, then restart, but no change...

Edit the "listen_addresses" parameter in postgresql.conf, then
restart.

-Doug

#4Michal Hlavac
hlavki@hlavki.sk
In reply to: Leonel Nunez (#2)
Re: Postgresql connection on suse 10

Leonel Nunez wrote:

edit your postgresql.conf and set the listen_address variable
to your needs

thanks Leonel,

it is possible to setup subnet mask for postgresql through listen_address??

thanks, miso

#5Andreas Kretschmer
akretschmer@spamfence.net
In reply to: Michal Hlavac (#4)
Re: Postgresql connection on suse 10

Michal Hlavac <hlavki@hlavki.sk> schrieb:

Leonel Nunez wrote:

edit your postgresql.conf and set the listen_address variable
to your needs

thanks Leonel,

it is possible to setup subnet mask for postgresql through listen_address??

Yes, of course, in CIDR-Notation.

HTH, Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
Kaufbach, Saxony, Germany, Europe. N 51.05082�, E 13.56889�