Postgres.app Could not start on port 5432

后端 未结 24 1349
暗喜
暗喜 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:07

    I had a similar problem where I could not connect to the Postgres.app even though the app itself said that it is running on port 5432.

    I am not sure why, but even when I quit the app and checked that no postgres processes was running with ps -a. these files existed:

    /tmp/.s.PGSQL.5432
    

    and

    /tmp/.s.PGSQL.5432.lock
    

    My solution was to delete these files and then start the postgres.app again.

提交回复
热议问题