1 Answer
#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
Your Answer
x