让脚本在后台运行的方式

一、nohup

nohup /test.sh &
之后可以通过执行jobs命令来查看后台运行的程序

二、

sh /test.sh &

猜你喜欢

转载自www.cnblogs.com/new-journey/p/10654293.html