Postgres.app Could not start on port 5432

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

    I had similar problem when trying to use postgresql with rails. Updating my Gemfile to use new version of gem pg solve this problem for me. (gem pg version 0.16.0 works). In the Gemfile use:

    gem 'pg', '0.16.0'
    

    then run the following to update the gem

    bundle install --without production
    bundle update
    bundle install
    

提交回复
热议问题