0
無法在mac上使用rhc port-forward
,當我嘗試連接Ruby錯誤時。rhc端口轉發錯誤 - ruby
我在Mac上運行的優勝美地10.10.5
ruby --version
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14]
rhc port-forward
顯示以下內容:
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 port-forward
命令錯誤:
/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>'