Usually this means that there is already a PostgreSQL server running on your Mac. If you want to run multiple servers simultaneously, use different port code example
Example: Port 5432 is already in use Usually this means that there is already a PostgreSQL server running on your Mac. If you want to run multiple servers simultaneously, use different ports.
sudo pkill -u postgres