zl程序教程

您现在的位置是:首页 >  工具

当前栏目

nohup用法学习

学习 用法 nohup
2023-09-14 09:11:21 时间

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来杀死了。