关闭SSH,程序后台运行

nohup ./myprogram > log.out &

使用时,将./myprogram替换成想要执行的命令即可

原文地址:https://www.cnblogs.com/zhyantao/p/10802522.html