相关疑难解决方法(0)

服务器是在主机"localhost"(:: 1)上运行并在端口5432上接受TCP/IP连接吗?

在此之前,请注意我在Stack Overflow和网络上的文章中发现了几个类似的问题,但这些都没有帮助我解决我的问题:

现在,问题在于:

  • 我有一个像魅力一样的Rails应用程序.
  • 与我的合作者一起,我们使用GitHub一起工作.
  • 我们有一个master和一个mvp分支机构.
  • 我最近git用Homebrew(Mac)更新了我的版本.
  • 我们使用Foreman在本地启动我们的应用程序.

现在,当我尝试在本地启动应用程序时,出现以下错误:

PG::ConnectionBad at /
could not connect to server: Connection refused
    Is the server running on host "localhost" (::1) and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432?
Run Code Online (Sandbox Code Playgroud)

我试图多次重启计算机.

我还检查了以下内容/usr/local/var/postgres:

PG_VERSION      pg_dynshmem     pg_multixact    pg_snapshots    pg_tblspc       postgresql.conf
base …
Run Code Online (Sandbox Code Playgroud)

ruby postgresql ruby-on-rails ruby-on-rails-3 ruby-on-rails-4

48
推荐指数
9
解决办法
8万
查看次数

DBConnection.ConnectionError) tcp connect (localhost:5432): 连接被拒绝 - :econnrefused

我在Buddy持续集成服务器上运行一个构建,mix test当它到达 postgrex/ecto 部分时,它在执行时出现错误:

    ==> postgrex
Compiling 61 files (.ex)
Compiling lib/postgrex/protocol.ex (it's taking more than 10s)
Compiling lib/postgrex/default_types.ex (it's taking more than 10s)
Generated postgrex app
==> ecto
Compiling 69 files (.ex)
Compiling lib/ecto/query/builder/lock.ex (it's taking more than 10s)
Compiling lib/ecto/repo/queryable.ex (it's taking more than 10s)
Compiling lib/ecto/query/inspect.ex (it's taking more than 10s)
Compiling lib/mix/tasks/ecto.drop.ex (it's taking more than 10s)
Compiling lib/ecto/query/builder/filter.ex (it's taking more than 10s)
Compiling lib/ecto/repo/preloader.ex (it's taking more than 10s)
Compiling …
Run Code Online (Sandbox Code Playgroud)

postgresql ecto phoenix-framework

4
推荐指数
1
解决办法
7663
查看次数