connection failed for: localhost (Errno::ECONNREFUSED: Connection refused - connect(2))

隐身守侯 提交于 2020-01-03 05:57:04

问题


I am using capistrano 2.15.5 for my rails application deployment. I am using localhost for server and have also tried with 127.0.0.1 in place of localhost. After running *cap production deploy:setup* the error that i am getting is: **Errno::ECONNREFUSED: Connection refused - connect(2)**. After searching for it i found out ECONNREFUSED means the client couldn't make a TCP connection to the server, either because it's down, or its DNS is not resolving..

how to fix this issue? thanks.


回答1:


You have to add your ssh key in server's ssh authorize keys



来源:https://stackoverflow.com/questions/21719985/connection-failed-for-localhost-errnoeconnrefused-connection-refused-conn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!