启动h2o蒸汽时无法连接到postgresql

启动h2o蒸汽时无法连接到postgresql,postgresql,h2o,Postgresql,H2o,启动h2o的蒸汽应用程序时,我遇到了一个问题:按照随附的手册,我创建了steamdb用户: createuser -P steam 然后 ./create-database.sh 从适当的目录。看起来不错。但当我终于试着和你一起跑的时候 ./steam serve master --compilation-service-address="localhost:8080" 它失败了 pq: password authentication failed for user "steam" 我尝

启动h2o的蒸汽应用程序时,我遇到了一个问题:按照随附的手册,我创建了
steam
db用户:

createuser -P steam
然后

./create-database.sh
从适当的目录。看起来不错。但当我终于试着和你一起跑的时候

./steam serve master --compilation-service-address="localhost:8080"
它失败了

pq: password authentication failed for user "steam"
我尝试通过添加行来修改
pg_hba.conf

host steam steam 127.0.0.1/32 trust
local steam steam trust

但它不起作用。我尝试了
warn
和独立
steam
版本。任何想法或解决方法都将不胜感激。

您是否创建了~/.pgpass文件,该文件属于运行Steam的用户

它应该包含:
*:*:*:蒸汽:

而且它应该只有用户可读
chmod 600~/.pgpass

谢谢,先生,我完全忘记了这个选项。