Skip to content

Latest commit

 

History

History
55 lines (28 loc) · 962 Bytes

配置.md

File metadata and controls

55 lines (28 loc) · 962 Bytes

cenos 服务器配置

搭建一个远程访问的Jupyter notebook

http://115.28.130.222:9999/

安装Anaconda

配置jupyter notebook

https://yq.aliyun.com/articles/441132

ssh [email protected] -L 127.0.0.1:1234:127.0.0.1:9999

让后台运行脚本,Session断开也继续运行

  • nohup 命令

nohup jupyter notebook --ip=192.168.2.2 &

这里简单解释一下nohup的含义,nohup就是不挂起的意思( no hang up)。该命令的一般形式为:

nohup command &

  • screen 命令

screen -S 名称

  • tmux 命令

screen 在cenos8 中不支持,所以采用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