错误解决:There is no screen to be resumed matching
目录
- 问题引出
- 解决方案
- 参考文献
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. 解决方案
- 首先使用screen -d id,先退出。
(pytorch) root@dev-chq-caa:/private# screen -d 74308
[74308.n detached.]
- 然后再使用 screen -r id重新连接
(pytorch) root@dev-chq-caa:/private# screen -r 74308
出现下面的结果:
最后问题解决了。
3. 参考文献
1. 使用screen恢复会话时出现There is no screen to be resumed matching错误解决办法
还没有评论,来说两句吧...