Openshift rhc端口转发错误-ruby

Openshift rhc端口转发错误-ruby,openshift,portforwarding,Openshift,Portforwarding,无法在mac上使用rhc端口转发,当我尝试连接时,出现Ruby错误 我在Mac Yosemite 10.10.5上运行 ruby --version ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14] rhc端口转发显示以下内容: Service Local OpenShift --------------- --------------- ---- ----------------

无法在mac上使用
rhc端口转发
,当我尝试连接时,出现Ruby错误

我在Mac Yosemite 10.10.5上运行

ruby --version
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14]
rhc端口转发
显示以下内容:

Service         Local                OpenShift
--------------- --------------- ---- --------------------------------------------------------
haproxy         127.0.0.1:8080   =>  127.11.188.2:8080
haproxy         127.0.0.1:8081   =>  127.11.188.3:8080
node            127.0.0.1:8082   =>  127.11.188.1:8080
node            127.0.0.1:3000   =>  *:3000
s_redis_db_host 127.0.0.1:50681  =>  56a388737628e1252200004b-bartonhammond.rhcloud.com:50681
我运行环回配置
sudo ifconfig lo0 alias 127.11.188.1

我将浏览器指向
127.0.0.1:3000
,并且
rhc端口前进
命令错误:

/Library/Ruby/Gems/2.0.0/gems/net-ssh-2.9.2/lib/net/ssh/ruby_compat.rb:30:in `select': closed stream (IOError)
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.9.2/lib/net/ssh/ruby_compat.rb:30:in `io_select'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:210:in `process'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:170:in `block in loop'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:170:in `loop'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:170:in `loop'
from /Library/Ruby/Gems/2.0.0/gems/rhc-1.38.4/lib/rhc/commands/port_forward.rb:171:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.9.2/lib/net/ssh.rb:215:in `start'
from /Library/Ruby/Gems/2.0.0/gems/rhc-1.38.4/lib/rhc/commands/port_forward.rb:125:in `block in run'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.9.2/lib/net/ssh.rb:215:in `start'
from /Library/Ruby/Gems/2.0.0/gems/rhc-1.38.4/lib/rhc/commands/port_forward.rb:86:in `run'
from /Library/Ruby/Gems/2.0.0/gems/rhc-1.38.4/lib/rhc/commands.rb:294:in `execute'
from /Library/Ruby/Gems/2.0.0/gems/rhc-1.38.4/lib/rhc/commands.rb:285:in `block (3 levels) in to_commander'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.2.1/lib/commander/command.rb:180:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.2.1/lib/commander/command.rb:180:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.2.1/lib/commander/command.rb:155:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.2.1/lib/commander/runner.rb:421:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/rhc-1.38.4/lib/rhc/command_runner.rb:72:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.2.1/lib/commander/delegates.rb:8:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/rhc-1.38.4/lib/rhc/cli.rb:37:in `start'
from /Library/Ruby/Gems/2.0.0/gems/rhc-1.38.4/bin/rhc:20:in `<top (required)>'
from /usr/bin/rhc:23:in `load'
from /usr/bin/rhc:23:in `<main>'
/Library/Ruby/Gems/2.0.0/Gems/net-ssh-2.9.2/lib/net/ssh/Ruby_compat.rb:30:在“选择”中:关闭流(IOError)
from/Library/Ruby/Gems/2.0.0/Gems/net-ssh-2.9.2/lib/net/ssh/Ruby_compat.rb:30:in'io_select'
from/Library/Ruby/Gems/2.0.0/Gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:210:在“进程”中
from/Library/Ruby/Gems/2.0.0/Gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:170:in“block-in-loop”
from/Library/Ruby/Gems/2.0.0/Gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:170:in'loop'
from/Library/Ruby/Gems/2.0.0/Gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:170:in'loop'
from/Library/Ruby/Gems/2.0.0/Gems/rhc-1.38.4/lib/rhc/commands/port_forward.rb:171:in“运行中的块(2个级别)”中
from/Library/Ruby/Gems/2.0.0/Gems/net-ssh-2.9.2/lib/net/ssh.rb:215:in'start'
from/Library/Ruby/Gems/2.0.0/Gems/rhc-1.38.4/lib/rhc/commands/port_forward.rb:125:in'block in run'
from/Library/Ruby/Gems/2.0.0/Gems/net-ssh-2.9.2/lib/net/ssh.rb:215:in'start'
from/Library/Ruby/Gems/2.0.0/Gems/rhc-1.38.4/lib/rhc/commands/port_forward.rb:86:in'run'
from/Library/Ruby/Gems/2.0.0/Gems/rhc-1.38.4/lib/rhc/commands.rb:294:in'execute'
from/Library/Ruby/Gems/2.0.0/Gems/rhc-1.38.4/lib/rhc/commands.rb:285:in'block(3层)in to_commander'
from/Library/Ruby/Gems/2.0.0/Gems/commander-4.2.1/lib/commander/command.rb:180:in'call'
from/Library/Ruby/Gems/2.0.0/Gems/commander-4.2.1/lib/commander/command.rb:180:in'call'
from/Library/Ruby/Gems/2.0.0/Gems/commander-4.2.1/lib/commander/command.rb:155:in'run'
from/Library/Ruby/Gems/2.0.0/Gems/commander-4.2.1/lib/commander/runner.rb:421:in'run\u active\u command'
from/Library/Ruby/Gems/2.0.0/Gems/rhc-1.38.4/lib/rhc/command_runner.rb:72:in'run!'
从/Library/Ruby/Gems/2.0.0/Gems/commander-4.2.1/lib/commander/delegates.rb:8:in'run!'
from/Library/Ruby/Gems/2.0.0/Gems/rhc-1.38.4/lib/rhc/cli.rb:37:in'start'
from/Library/Ruby/Gems/2.0.0/Gems/rhc-1.38.4/bin/rhc:20:in`'
from/usr/bin/rhc:23:in“load”
from/usr/bin/rhc:23:in`'

您不需要执行此部分

I run the loop back config sudo ifconfig lo0 alias 127.11.188.1
运行rhc port forward命令后,只需将浏览器指向127.0.0.1:3000,它就可以工作了