screen 关闭会话,不进的情况下 - yangchaoming的博客 - CSDN博客

screen在使用的时候,进不去的情况下,使用下面如下代码,就可以啦

[root@localhost ~]# screen -ls
There are screens on:
9975.pts-0.localhost (Detached)
4588.pts-3.localhost (Detached)
2 Sockets in /var/run/screen/S-root. 

[root@localhost ~]# screen -X -S 4588 quit
[root@localhost ~]# screen -ls
There is a screen on:
9975.pts-0.localhost (Detached)
1 Socket in /var/run/screen/S-root.

删除dead的

[root@izwz9d6ptcmo742m281c82z kafka_2.11-2.0.0]# screen -ls
There is a screen on:
    23128.zookeeper    (Dead ???)
Remove dead screens with 'screen -wipe'.
1 Socket in /var/run/screen/S-root.

[root@izwz9d6ptcmo742m281c82z kafka_2.11-2.0.0]# screen -dr 23128.zookeeper
There is a screen on:
    23128.zookeeper    (Dead ???)
Remove dead screens with 'screen -wipe'.
There is no screen to be detached matching 23128.zookeeper.
[root@izwz9d6ptcmo742m281c82z kafka_2.11-2.0.0]# screen -wipe
There is a screen on:
    23128.zookeeper    (Removed)
1 socket wiped out.
No Sockets found in /var/run/screen/S-root.

[root@izwz9d6ptcmo742m281c82z kafka_2.11-2.0.0]# screen -wipe 23128.zookeeper
No Sockets found in /var/run/screen/S-root.

[root@izwz9d6ptcmo742m281c82z kafka_2.11-2.0.0]# screen ls
[screen is terminating]

Original url: Access
Created at: 2019-11-18 11:20:40
Category: default
Tags: none

请先后发表评论
  • 最新评论
  • 总共0条评论