Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433

Поиск
Список
Период
Сортировка
От Devrim Gündüz
Тема Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433
Дата
Msg-id 1475058469.24885.34.camel@gunduz.org
обсуждение исходный текст
Ответ на /var/run/postgresql/.s.PGSQL.5432 should be 5433  (Poul Kristensen <bcc5226@gmail.com>)
Ответы Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433
Список pgsql-admin
Hi,

On Tue, 2016-09-27 at 10:08 +0200, Poul Kristensen wrote:
> I have need to have to difference Postgres version runnung on the same RHEL
> 7.2 server.
>
> They are listening on 2 different ports as configured but socket is still
> listening
> on  port 5432 for  both of them.
>
> How come and how do I change this?

If you installed Postgres from Red Hat repos (likely), then change the port
number in unit file for the second instance. The recommended way is copying the
unit file under /etc/systemd/system/ and modify from there.

If you installed from PGDG repos, then changing port from postgresql.conf is
sufficient.

Regards,
--
Devrim GÜNDÜZ
EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433
Следующее
От: Poul Kristensen
Дата:
Сообщение: Re: /var/run/postgresql/.s.PGSQL.5432 should be 5433