nohup与screen 后台运行程序
nohup
nohup [command] >> /root/other.out &
将command命令运行后的输出文件重定向到/root/other.out,并将程序挂起,关闭ssh后程序不断
screen
先下载screen,yum -y install screen
创建新的终端界面
screen -S [会话名]
暂时离开
快捷键 CTRL+A+D
恢复会话
screen -r [会话名]
关闭
进入到会话后,exit ,退出