nohup

[root@Nginx_Master ~]# nohup /etc/nginx_check.sh &
[1] 5789
[root@Nginx_Master ~]# ls
anaconda-ks.cfg  install.log  install.log.syslog  nohup.out
[root@Nginx_Master ~]# tailf nohup.out 
++ wc -l
+ nginxpid=3
+ '[' 3 -eq 0 ']'
+ sleep 3
+ :
#nohup 不会随着终端的端开,而结束程序。
原文地址:https://www.cnblogs.com/bass6/p/5627705.html