Linux系统挂起进程的几种方法
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
Linux系统挂起进程的几种方法
法一
nohup run.sh & --> 输入 exit 推出,会自动 将 输出 写到 当前目录下的 nohup.txt里
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
法二
- 使用 tmux 的方法
tmux 使用命令:
Mac: yum install tmux -y
Ubuntu: sudo apt-get install tmux
命名会话
tmux new -s session
tmux new -s session_blake -d #在后台建立会话
tmux ls #列出会话
tmux attach -t session_blake #进入某个会话
【 进入某个 session 后: 启动程序命令的时候,因为已经是后台了,就没必要在加上 & (表示取地址符了),否则,在推出 session 使用 Ctrl+b d 的时候,刚刚启动的进程就会被终止 进程处于 T 的状态,不能正常工作。】
关闭会话:
tmux kill-session -t 会话名
最实用的命令:
Ctrl+b d 退出tumx,并保存当前会话,这时,tmux仍在后台运行,可以通过tmux attach进入到指定的会话;
Ctrl+b s 以菜单方式显示和选择会话
推荐内容




A beautiful web dashboard for Linux
最近提交(Master分支:7 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
相关推荐
查看更多
linux-dash

A beautiful web dashboard for Linux
linux-dash

A beautiful web dashboard for Linux
linux-dash

目录
所有评论(0)