nohup命令用于在系统后台运行命令退出终端后并不影响命令的执行。
nohup command &
nohup command > 日志路径.out 2>&1 &
# 获取程序进程Id ps -aux | grep command # 停止对应的进程id kill PID