# nohup

后台启动任务

# 挂起服务 退出终端不断开
nohup ./test.sh &  
# 将日志输出到jenkins.file
nohup java -jar jenkins.war --httpPort=8080 >jenkins.file 2>&1 &

nohup command > mylog.log 2>&1 &
1
2
3
4
5
6
Last Updated: 10/9/2024, 2:59:27 AM