Connection refused (PGError) (postgresql and rails)

前端 未结 6 1075
栀梦
栀梦 2020-12-06 01:37

I keep getting this error when i try to run my localhost using \"$rails s\":

(Mac OSX 10.8.3) (ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.3.0]) (R

6条回答
  •  臣服心动
    2020-12-06 02:09

    sudo -u postgres pg_ctlcluster 9.3 main stop
    

    followed by

    sudo -u postgres pg_ctlcluster 9.3 main restart
    

    worked for me

提交回复
热议问题