nohup用法学习

1.nohup和&的使用

https://www.cnblogs.com/jinxiao-pu/p/9131057.html 

nohup command > myout.file 2>&1 & 

在上面的例子中,0 – stdin (standard input),1 – stdout (standard output),2 – stderr (standard error) ;

2>&1是将标准错误(2)重定向到标准输出(&1),标准输出(&1)再被重定向输入到myout.file文件中。

2.关闭nohup开启的进程

https://blog.csdn.net/donaldsy/article/details/96350061

ps -aux | grep jupyter 查看运行的jupyter进程。 然后就可以用kill -9 pid来杀死了。

 

posted @ 2021-04-05 02:38  lypbendlf  阅读(63)  评论(0编辑  收藏  举报