Postgres.app Could not start on port 5432

后端 未结 24 1351
暗喜
暗喜 2021-01-29 22:24

I\'m using http://postgresapp.com. In the menubar it gives the error \" Could not start on port 5432.\" Similarly if I try to start the server from the terminal, I get:

24条回答
  •  我在风中等你
    2021-01-29 23:11

    At a guess, something else had taken port 5432 so the app chose to run on 5433 instead.

    Why not just connect to Pg on port 5433, if that's where it's running? You have a /tmp/.s.PGSQL.5432 socket file, so you can connect with psql -p 5433 for UNIX domain socket connections. It'll also be listening on the same port with TCP/IP, so you can use psql -h localhost -p 5433 for TCP/IP and have your apps connect to port 5433 instead of 5432.

    Change your .psqlrc to set the new port as default and you can forget it isn't on the default port.

提交回复
热议问题