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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



1) You should have a script in /etc/init.d called something like postgresql-VERSION


2) Rename this to postgresql-SomeIdentifierThatRunsOn5432

3) Copy it to postgresql-SomeIdentifiedThatRunsOn5433

4) You now have 2 identical scripts in /etc/init.d


5) In /etc/sysconfig/pgsql create 2 scripts named the same thing. The exact same names as your scripts in /etc/init.d


6) They will say something like this:


PGDATA=/pgdata/myDirTo5432
PGPORT=5432
PGLOG=/var/lib/pgsql/pgstartup.${PGPORT}.log


PGDATA=/pgdata/myDirTo5433
PGPORT=5433
PGLOG=/var/lib/pgsql/pgstartup.${PGPORT}.log


Then do your service SCRIPTNAME initdb and service SCRIPTNAME start


Works for me.






From: pgsql-admin-owner@xxxxxxxxxxxxxx <pgsql-admin-owner@xxxxxxxxxxxxxx> on behalf of Poul Kristensen <bcc5226@xxxxxxxxx>
Sent: Tuesday, September 27, 2016 3:08 AM
To: pgsql-admin@xxxxxxxxxxxxxx
Subject: /var/run/postgresql/.s.PGSQL.5432 should be 5433
 
Hi !

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?

TIA

Poul 



Journyx, Inc.
7600 Burnet Road #300
Austin, TX 78757
www.journyx.com

p 512.834.8888 
f 512-834-8858 

Do you receive our promotional emails? You can subscribe or unsubscribe to those emails at http://go.journyx.com/emailPreference/e/4932/714/ 

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux