nohup log output by day

Output log in the current directory:

nohup java -jar ace-auth.jar >> nohup`date +%Y-%m-%d`.out 2>&1 &

 

Specify the log output directory:

Specify the output directory to the current log file folder

nohup java -jar ace-auth.jar >> ./log/nohup`date +%Y-%m-%d`.out 2>&1 &

 

Guess you like

Origin www.cnblogs.com/jin-521/p/11417505.html