0
现在我只是试图使heroku pg:psql
命令工作,但我最终的目的是将我的电脑(本地主机)上的数据库复制到heroku postgresql数据库与pg:push
命令。Heroku Postgresql pg:psql没有路由到主机
现在,当我只是试图访问我在Heroku上创建的数据库中,heroku pg:psql
命令返回:
psql: could not connect to server: No route to host
Is the server running on host "ec*-**-***-***-**.eu-west-1.compute.amazonaws.com" (**.***.***.**) and accepting
TCP/IP connections on port 5432?
postgresql.conf中:(线路没有评论)
listen_address ='*'
port = 5432
ssl = true
和host all all **.***.***.** trust
在pg_hba.conf
我也尝试添加规则到iptables,以便从t访问数据库他托管着heroku提供的IP地址。
我在Debian计算机上,我该如何解决这个问题?
希望这可以帮助你的问题。 GL –
非常感谢!其实我只是发现问题是来自Internet连接的防火墙...我不接受5432端口的打开...... –