Re: cant connect to localhost:5432 (but unix socket ok)

Поиск
Список
Период
Сортировка
От Joao Miguel Ferreira
Тема Re: cant connect to localhost:5432 (but unix socket ok)
Дата
Msg-id CALyyT7T=X+58tVCk2s82ZJV9LQB2zTZ4dEviQYzH=K0A+1QKjg@mail.gmail.com
обсуждение исходный текст
Ответ на RE: cant connect to localhost:5432 (but unix socket ok)  ("Jain, Ankit" <Ankit.Jain@snapon.com>)
Список pgsql-general
Hello Jain

On Fri, Feb 5, 2021 at 1:16 PM Jain, Ankit <Ankit.Jain@snapon.com> wrote:

Did you try modifying the firewall settings ?

 

Add postgres service to the firewall. If that doesn’t work, explicitly open the port 5433 in the firewall.


Anyway, given these settings, "psql -p 5433 -h localhost" should
connect.  If you still get "connection refused" then you need to
look at the kernel firewall (packet filter) settings.

 

yes, with "-p 5433" I can connect

 

It was not necessary to change firewall settings because I was able to connect to the database with the "-p 5433" option

and all is fine now

thanks

В списке pgsql-general по дате отправления:

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: updating(column) Porting from Oracle Trigger to PostgreSQL trigger
Следующее
От: Thorsten Schöning
Дата:
Сообщение: Less efficient query plan after merging tables