Home Linux Nohup的新用法setsid Nohup
Post
Cancel

Linux Nohup的新用法setsid Nohup

refer to:
https://unix.stackexchange.com/questions/446625/why-nohup-background-process-is-getting-killed

貌似在最新的版本(ubuntu 20 + )中,仅仅使用 nohup ... & 是不行的

解决办法: 前面加上 setsid

增加 setsid 之前:

加了 setsid 之后:

This post is licensed under CC BY 4.0 by the author.