linux nohup &

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/aa6751789079/article/details/82462366

在linux 系统中我们想让某个程序在后台运行时 会使用& 在命令后来让程序自动运行 。

那nohup 命令有怎么乍用怎么使用呢

在要运行的前加上  nohup /root/start.sh &  这样就可以了。

在shell中回车后提示:

[~]$ appending output to nohup.out

原程序的的标准输出被自动改向到当前目录下的nohup.out文件,起到了log的作用。

猜你喜欢

转载自blog.csdn.net/aa6751789079/article/details/82462366