寻找可以显示打开屏幕并允许重新连接的东西。
这只是众多例子中的一个:
root@helium:~# screen -r
There are screens on:
32159.pts-1.helium (08/15/2013 03:11:54 PM) (Attached)
27669.pts-1.helium (08/15/2013 02:21:32 PM) (Attached)
There is no screen to be resumed.
root@helium:~# screen -r 321
There is a screen on:
32159.pts-1.helium (08/15/2013 03:11:55 PM) (Attached)
There is no screen to be resumed matching 321.
root@helium:~# screen -r 32159
There is a screen on:
32159.pts-1.helium (08/15/2013 03:11:55 PM) (Attached)
There is no screen to be resumed matching 32159.
root@helium:~# screen -r 32159.pts-1.helium
There is a screen on:
32159.pts-1.helium (08/15/2013 03:11:54 PM) (Attached)
There is no screen to be resumed matching 32159.pts-1.helium.
root@helium:~# screen REATTACH TO MY GODDAMN SESSION
答案1
GNUscreen
有两个单独的命令用于“恢复”会话或“附加”会话。由于它目前认为您的会话已附加,您需要做以下两件事之一:
a) 使用 分离当前连接的终端
screen -D
,然后再试screen -r
一次;b) 使用“多附加”命令
screen -x
。
如果你正在寻找选择尝试screen
tmux
,它始终允许多次附加(使用tmux attach
命令)。