1

Need to change the Postgresql default port number

Need to change the Postgresql Default port number to another port number what is the way to change the port number for Postgresql

PostgreSQL Add a comment
frank
asked Jun 01 2019
edited Jun 01 2019

Answer

1

#vim /var/lib/pgsql/9.5/data/postgresql.conf
And Search the following Line

#port 5432
Remove (#) and replace the port number
And finally, restart the service

#systemctl restart postgresql

Add a comment
linuxhelp
asked Jun 01 2019
Post your Answer