天天看点

错误解决:There is no screen to be resumed matching

目录

  • ​​1. 问题引出​​
  • ​​2. 解决方案​​
  • ​​3. 参考文献​​

1. 问题引出

最近在使用screen 命令创建会话的时候,突然不小心将我的vscode关闭了,然后重新连接再次打开我之前创建的会话的时候出现了下面这句错误:

(pytorch) root@dev-chq-caa:/private# screen -r 74308.n

There is a screen on:

74308.n (08/17/21 21:11:47) (Attached)

There is no screen to be resumed matching 74308.n.

然后看了下网上分析的原因:

虽然重新连接,但之前的screen还是处于打开状态(1个screen无法同时打开2次),所以无法重新打开screen

2. 解决方案

  1. 首先使用screen -d id,先退出。

(pytorch) root@dev-chq-caa:/private# screen -d 74308

[74308.n detached.]

  1. 然后再使用 screen -r id重新连接
(pytorch) root@dev-chq-caa:/private# screen -r 74308

出现下面的结果:

错误解决:There is no screen to be resumed matching

3. 参考文献

继续阅读