判断进程是否正常存在[root@localhost shell]# cat http.sh #!/bin/envpgrep httpd &> /dev/nullif [ $? -ne 0 ];thenecho "no httpd"elseecho "httpd"fi[root@localhost shell]# cat http1.sh #!/bin/envpgrep httpd &> /dev/nulltest $? -eq 0 && echo "httpd" || echo "no httpd"[root@localhost shell]# 判断网站服务是否正常Wget curl elinks --dump[root@localhost shell]# cat service.sh #!/bin/env bashweb_server=www.it...