[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 不会随着终端的端开,而结束程序。
网名:bass 分享技术 突破难点 创新思维