(1) rough statistics on port 80 connections: netstat-nat | grep-I & quot; 80 & quot; | wc-l, ports containing 80 will be counted (2) count the number of httpd protocol connections: ps-ef | grephttpd | wc-l (3) count the 20 IP addresses with the most links: netstat-na | grepESTABLISHED |... (1) rough statistics on port 80 connections: netstat-nat | grep-I "80" | wc-l, ports containing 80 will be counted
(2) count the number of httpd connections: ps-ef | grep httpd | wc-l
(3) up to 20 IP addresses of the statistical link: netstat-na | grep ESTABLISHED | awk '{print $5}' | awk-F: '{print $1}' | sort | uniq-c | sort-r | head-20
(4) count the number of connected instances: netstat-na | grep ESTABLISHED | wc-l.
(5) statistics on links of various statuses: netstat-ant | awk '{print $ NF}' | grep-v '[a-z]' | sort | uniq-c
Author: Phoenix_MVP
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service