赞
踩
今天才知道,原来关闭远程连接后也可以使用screen控制程序在后台运行,上线后就可以调出后台的程序,非常方便!
步骤如下:
Command not found
说明当前设备没有安装screen,转步骤2;否则转步骤3;sudo apt install screen
安装;screen -S name
,此处的name是你后续调出后台程序时需要使用的,name相当于那个screen使用的名称;screen -ls
查看当前screen运行的程序screen -r name
如果远程连接被动关闭,就会出现错误:
There is a screen on:
12345.name (日期 时间) (Attached)
虽然是重新连接了,但是之前的screen还是处于打开状态,1个screen不可能同时打开两次,所以无法打开screen。
使用下面语句先解除Attached:
screen -d id
id即上面的12345
然后再使用screen -r id
重新连接
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。