46-nohup use

Time:2022-11-17

Output information to nohup.out:

nohup java -jar yourProject.jar & 

Only output error messages to the log file:

nohup java -jar yourProject.jar >/dev/null 2>log & 

No information at all:

nohup java -jar yourProject.jar >/dev/null 2>&1 &

There are three commonly used streams in operating systems:
0: standard input stream stdin
1: Standard output stream stdout
2: Standard error stream stderr