新手问题 如何进入服务器上次启动的 rails console

tinyfeng · January 20, 2020 · Last by spike76 replied at January 20, 2020 · 2131 hits

场景:上次在服务器上起了一个 irb,因为时间过长,ssh 断开连接。现在重新 ssh 连上服务器,如何在 shell 重新打开那个 irb。

我知道 tmux 可以做到这一点,但是想知道其他方式。

跟 STDIN,STDOUT 相关的我还不是很清楚....

用 tmux 是对的。

screen -S xxx 创建具名终端,进入该终端进行操作,相当于在后台启动了一个终端。即使 ssh 断开,重新连接后使用 screen -r xxx 进入原具名终端

You need to Sign in before reply, if you don't have an account, please Sign up first.