Command for viewing the current connection statistics on a linux server

Source: Internet
Author: User
On a linux server, run the following command to view the current number of connections: netstat-n | awk & amp; #39; /^ tcp/{++ S [$ NF]} END {for (ainS) printa, S [a]} & amp; #39; LAST_ACK14SY...
On a linux server, run the following command to view the current number of connections: netstat-n | awk '/^ tcp/{++ S [$ NF]} END {for (a in S) print, S [a]} 'last_ack 14 SYN_RECV 348 ESTABLISHED 70 FIN_WAIT1 229 FIN_WAIT2 30 CLOSING 33 TIME_WAIT 18122 CLOSED: No connection is active or in progress. LISTEN: The server is waiting for the incoming call. Www.2cto.com SYN_RECV: a connection request has arrived, waiting for confirmation. SYN_SENT: The application has started. open a connection. ESTABLISHED: normal data transmission status. FIN_WAIT1: The application says it has been completed. FIN_WAIT2: the other side has agreed to release. CLOSING: both sides attempt to close at the same time. TIME_WAIT: the other side has initialized a release. LAST_ACK: wait until all groups die.
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.