监控web服务方法

本地监控:端口  netstat -anltup | grep 80  nmap ip -p 80 telnet ip:80 lsof -i :80|wc -l

              进程 ps -ef| grep nginx |wc -l     pgrep nginx

              服务 curl -o /dev/null -I -s -w "%{http_code}" http://www.baidu.com  

                     wget --spider --timeout=100 --tries=3 http://www.baidu.com

原文地址:https://www.cnblogs.com/howhy/p/6178877.html