使用SSH连接远程服务器,启动服务,退出SSH后,服务也就终止了,使用Screen可以解决这个问题。
apt-get install screen
cd /home/meteor/hello
meteor
screen -ls
执行后会列出正在运行的子界面,查看服务运行的子界面
screen -ls
子界面代号,进入运行子界面的控制台
There is a screen on:
6556.pts (Detached)
1 Socket in /var/run/screen/S-root.
There is no screen to be resumed matching 6556
screen -d 6556
screen -r
进入
ctrl+a
再输入d
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有