Postgres.app Could not start on port 5432

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

    You most likely has a PostgreSQL installed, deleted it and installed it again. PostgreSQL typically used port 5432 but if not available, increases to the next available one, in this case 5433. So, you probably chose this port on your second install.

    I think you should check file:

    /etc/services

    and adjust rows below for your expected port number:

    postgresql 5432/udp # PostgreSQL Database

    postgresql 5432/tcp # PostgreSQL Database

    After this you should restart your computer (simplest way).

提交回复
热议问题