This article shares with you the main isLinuxUseNetstatcommand to view the number of concurrent connectionsRelated content, come together to look at it, hope that everyone to learn Linux help. Netstat-n | awk '/^tcp/{++s[$NF]} END {for (a in S) print A, s[a]} ' explanation : examples of returned results: Last_ack 5 (number of requests waiting to be processed) SYN_RECV 30 Established 1597 (Normal data transfer status) Fin_wait1 51 Fin_wait2 504 Time_wait 1057 (The number of requests to wait for the timeout to finish processing) Status: Description CLOSED: No connection is active or in progress LISTEN: The server is waiting to enter the call Syn_recv: A connection request has arrived, waiting for confirmation Syn_sent: Application has started, open a connection Established: Normal data transfer status Fin_wait1: Application says it's done Fin_wait2: The other side has agreed to release Itmed_wait: Wait for all packets to die CLOSING: Try to close both sides simultaneously Time_wait: A release was initialized on the other side of the Last_ack: Wait for all packets to dieIf you just want to see the current number of concurrent connections, you can use the following command: netstat-nat|grep established|wc-l Source: Tan9le's Blog
Linux uses the netstat command to view the number of concurrent connections