jar package released under liunx

Start command:
as log:
the nohup Java -jar timeServer.jar> & timeServer.log
no key is the last log :(> / dev / null 2> & 1 part, / dev / null space is a virtual device (similar physics black hole), after any output is redirected to the device, will go down the drain
> / dev / null represents the standard output redirection information to the "black hole"
2> & 1 shows a standard error redirected to the standard output (since the standard output has been directed to the "black hole", and namely: standard output at this time is a "black hole", then the standard error output directed to the standard output corresponding to the error output is also directed to a "black hole"))
the nohup Java -jar timeServer.jar> / dev / null 2> & 1 & (jar do not start logging mode)

Guess you like

Origin www.cnblogs.com/duduhello/p/11589528.html