tmux -- ssh terminal can be closed without impact the server process

本文介绍如何利用TMUX工具来管理通过SSH连接到服务器的任务。即使关闭了SSH终端,也能保持任务继续运行,并可在方便时重新连接并查看任务状态。此外,还介绍了TMUX的窗口分割功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

When we use SSH terminal to do something on the server side, we can't close the SSH terminal if the task/process is still running on the server side. 

TMUX can help it.

1.open SSH terminal

2.login to the server

3.tmux new

4.do your job

5.Ctrl + B then type d to detach the tmux session.

6.logout and Close SSH terminal.

When you have time, you can go back and login to the server, type 'tmux a' then you can attach to your previous tmux session.

 

TMUX also has function of split windows of terminal.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值