How to create a Server in PostgreSQL with port other than 5432?

1

Is it possible to create a server inside the Postgresql database with a port other than 5432?

It is possible to have  Server1: Postgresql on port 5432 and  Server2: Test on port 5433 ??

    
asked by anonymous 06.10.2017 / 18:49

1 answer

1

Change the file:

/etc/init.d/postgresql-9.3

The line:

PGPORT=5432

Then reload the service:

service postgresql-9.3 restart
service postgresql-9.3 reload
    
06.10.2017 / 18:58