V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
leafgray
V2EX  ›  问与答

screen -dr xxx 无法 attache 到某个 session 中了。。。

  •  
  •   leafgray · 2016-06-15 13:06:03 +08:00 · 1501 次点击
    这是一个创建于 2878 天前的主题,其中的信息可能已经有所发展或是发生改变。

    RT

    screen -dr xxx 回车后进程就挂住了,无法 attache 到原来的 session 中了。 screen -list 看到该 session 是 Attached 的状态,但实际上已经没有机器连在上面了。

    怎么回事?谢谢。

    4 条回复    2016-06-15 14:21:02 +08:00
    RemRain
        1
    RemRain  
       2016-06-15 13:23:18 +08:00
    先前的会话没正常断开吧, screen -x xxx 试试
    leafgray
        2
    leafgray  
    OP
       2016-06-15 13:59:25 +08:00
    @RemRain 一样挂住了。。。 「没有正常断开」一直都是直接关掉 putty 退出的。
    pubby
        3
    pubby  
       2016-06-15 14:02:08 +08:00   ❤️ 1
    可能是之前 ssh 网络问题卡死了

    ps aux|grep sshd
    列出所有 sshd 进程,
    根据时间信息,找到那个有问题的 sshd 进程, kill -9 杀掉就好(千万别 kill 掉 root 用户的 sshd 进程)
    leafgray
        4
    leafgray  
    OP
       2016-06-15 14:21:02 +08:00
    @pubby 感谢,妥了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2135 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:46 · PVG 19:46 · LAX 04:46 · JFK 07:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.