首页 文章

无法启动sinatra应用程序

提问于
浏览
0

我克隆了一个sinatra应用程序,并试图运行该应用程序 . 我按照回购中的步骤读了我,但是当我跑:

rackup -p 4567

服务器启动但我收到以下错误:

PG::ConnectionBad at /
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?

任何帮助都是适当的,谢谢

1 回答

  • 3

    您的PostgreSQL没有运行或不接受 127.0.0.1:5432 的连接

    这意味着您应该启动一个PostgreSQL服务器,如果它已经运行,请检查您的防火墙配置 . (或者,如果您的PostgreSQL服务器在 127.0.0.1:4000 运行,则需要将应用程序配置调整为这些值)

相关问题