The web engineer will be familiar with the netstat command. the direct netstat is divided into two parts: the following two parts: www.2cto.com and ActiveInternetconnections, which are called active TCP connections. & quot; recv-Q & quot; and & quot; Send-Q & quot; indicate that % 0A is the receiving queue and sending queue...
The web engineer will be familiar with the netstat command. the direct netstat is divided into two parts: the following two parts: www.2cto.com
One is Active Internet connections, which is called an Active TCP connection. "Recv-Q" and "Send-Q" indicate that % 0A is a receiving queue and a sending queue. These numbers are generally 0. If not, the package is accumulating in the queue. This can only be seen in rare cases. The other is Active UNIX domain sockets, called the Active Unix domain interface (which is the same as network socket, but can only be used for local communication, and the performance can be doubled ). Www.2cto.com
Proto displays the protocol used for the connection. RefCnt indicates the process number connecting to this interface. Types indicates the type of the interface set. State indicates the current status of the interface set, path indicates the Path name used by other processes connected to the set interface. Common parameters-a (all) show all options. LISTEN is not displayed by default.
-T (tcp) only displays tcp-related options
-U (udp) only displays udp-related options
-N: aliases are not displayed. all digits can be converted to digits. Www.2cto.com
-L only list servers with Listen (Listener? MB? /Div>-p: displays the program name that creates the relevant link.
-R: displays route information and route tables.
-E: Display Extension information, such as uid.
-S: Statistics by protocol
-C runs the netstat command at every fixed time. Tip: The LISTEN and LISTENING statuses can only be seen with-a or-l to display the statistics of all ports. netstat-s
In the netstat output, the PID and process name netstat-pnetstat-p can be used with other switches to add the "PID/process name" to the netstat output, in this way, you can easily find the program www.2cto.com running on a specific port during debugging.
Display the core route information netstat-r www.2cto.com
Display the network interface list to view the IP address netstat-nat | awk '{print $5}' that is the most connected to a service port | awk-F: '{print $1}' | sort | uniq-c | sort-nr | head-20
TCP status list www.2cto.com
Netstat-nat | awk '{print $6}' | uniq-d | uniq-c
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.