https://yq.aliyun.com/articles/441132
ssh [email protected] -L 127.0.0.1:1234:127.0.0.1:9999
- nohup 命令
nohup jupyter notebook --ip=192.168.2.2 &
这里简单解释一下nohup的含义,nohup就是不挂起的意思( no hang up)。该命令的一般形式为:
nohup command &
- screen 命令
screen -S 名称
- tmux 命令
新建会话
tmux new -s session-name
分离会话(Ctrl+b d)
tmux detach
接入会话
tmux attach -t session-name
杀死会话
tmux kill-session -t session-name
切换会话
tmux switch -t session-name
查看状态
tmux ls