linux后台执行程序
1、使用& (后台执行,不能关闭窗口)
2、使用nohup 【你的命令】 & (后台执行,能关闭窗口)
3、使用screen (后台执行,能关闭窗口)
1)进入screen
2)执行命令 /home/vlog/aa.sh
3)关闭窗口
4)查看新窗口中进程
ps -ef | grep [aa.sh 中的命令部分值]
1、使用& (后台执行,不能关闭窗口)
2、使用nohup 【你的命令】 & (后台执行,能关闭窗口)
3、使用screen (后台执行,能关闭窗口)
1)进入screen
2)执行命令 /home/vlog/aa.sh
3)关闭窗口
4)查看新窗口中进程
ps -ef | grep [aa.sh 中的命令部分值]