Postgres.app Could not start on port 5432

后端 未结 24 1549
暗喜
暗喜 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 22:59

    If you've installed Postgres via another method (for example, from www.postgresql.org) and it's starting automatically at startup, you can prevent that Postgres from starting via the following:

    sudo launchctl unload /Library/LaunchDaemons/com.edb.launchd.postgresql-X.X.plist  
    sudo rm -f /Library/LaunchDaemons/com.edb.launchd.postgresql-X.X.plist  
    

    TIP: use tab to autocomplete after the com.edb.launchd part to figure out what version is loading.

    Restart Postgres.app and you should be good to go.

    (from http://forums.enterprisedb.com/posts/list/1831.page;jsessionid=70621DC48C99EDE663A6A594B05F1A02#6782)

提交回复
热议问题