I installed latest version of PostgreSQL. I tried to start with this command,
bin/pg_ctl start -D testDB
I got the following error message.
LOG: could not bind IPv4 socket: Address already in use HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry. WARNING: could not create listen socket for "localhost" FATAL: could not create any TCP/IP sockets
Looks like already installed postgreSQL in ubuntu is occupying this port. I am new to linux. So how do I kill the process which is occupying this port and start my own postgreSQL post master? and how can I make sure that default postgreSQL server does not start when ubuntu is rebooted?