linux server and tools commonly used commands

demon mode, and save the log

Example:

nohup ./run >/root/logs/error.log 2>&1 &

Explanation:

2> & 1 indicates not only the command line to save normal output error.log, an output error information is also saved to the error.log file;
& indicates that the process is running in the background;
nohup representation may have been uninterrupted execution, even if broken open SSH client program will not be terminated

Guess you like

Origin www.cnblogs.com/smallbo/p/11542314.html