Connection refused (PGError) (postgresql and rails)

前端 未结 6 1062
栀梦
栀梦 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条回答
  •  -上瘾入骨i
    2020-12-06 02:15

    This may resolve the issue :-

    • Get the hba.conf file address by using command SHOW config_file; and SHOW hba_file; in sql prompt

    • Now open hba.conf and add this host all all 0.0.0.0/0 trust

    • Now open postgresql.conf and add listen_address = '*'

提交回复
热议问题