leafgray
V2EX  ›  问与答

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

  •  
  •   leafgray · Jun 15, 2016 · 2570 views
    This topic created in 3816 days ago, the information mentioned may be changed or developed.

    RT

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

    怎么回事?谢谢。

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

    ps aux|grep sshd
    列出所有 sshd 进程,
    根据时间信息,找到那个有问题的 sshd 进程, kill -9 杀掉就好(千万别 kill 掉 root 用户的 sshd 进程)
    leafgray
    leafgray
    OP
    Jun 15, 2016
    4
    @pubby 感谢,妥了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   958 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:00 · PVG 04:00 · LAX 12:00 · JFK 15:00
    ♥ Do have faith in what you're doing.