加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 连接到屏幕

发布时间:2020-12-13 18:07:06 所属栏目:Linux 来源:网络整理
导读:如何附加屏幕?我可以看到屏幕正在以下输出中运行,但无法连接到它. [root@vishnuvm6 ~]# screen -lsThere is a screen on: 15941.pts-18.vishnuvm6 (Detached)1 Socket in /var/run/screen/S-root.[root@vishnuvm6 ~]# screen -x vishnuvm6There is no scree
如何附加屏幕?我可以看到屏幕正在以下输出中运行,但无法连接到它.
[root@vishnuvm6 ~]# screen -ls
There is a screen on:
        15941.pts-18.vishnuvm6  (Detached)
1 Socket in /var/run/screen/S-root.

[root@vishnuvm6 ~]# screen -x vishnuvm6
There is no screen to be attached matching vishnuvm6.

解决方法

由于它是唯一运行的屏幕并且已分离,因此您可以简单地:
screen -r

如果附上,你可以:

screen -d -r

首先分离它(我更喜欢屏幕-Dr虽然:“先分离并注销”)

要么:

screen -x

这将使所有其他附加的显示完好无损.如果您想在终端上进行辅导(例如),这是一个很好的技巧.

只有在存在其他分离屏幕时才需要为屏幕命名.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读