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

末蓝、 2022-09-05 12:57 268阅读 0赞

目录

    1. 问题引出
    1. 解决方案
    1. 参考文献

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

出现下面的结果:
在这里插入图片描述
最后问题解决了。

3. 参考文献

1. 使用screen恢复会话时出现There is no screen to be resumed matching错误解决办法

发表评论

表情:
评论列表 (有 0 条评论,268人围观)

还没有评论,来说两句吧...

相关阅读