nohup

来源:互联网 发布:优雅的淘宝收件人名字 编辑:程序博客网 时间:2024/06/05 14:35

1. nohup 永久执行

2. & 后台运行

例子:nohup tail -f nohup.out

然后退出登录,再连接,用ps -ef 你会还能看到在运行 ps -ef root      3457     1  0 18:20 ? 00:00:00 tail -f nohup.out
0 0