# Count the current network connection status netstat-n | awk & amp; #39;/^ tcp/{++ S [$ NF]} END {for (ainS) printa, S [a]} & amp; #39; # view the current port 80 connection status: netstat-tn | grep & quot;: 80 & quot; | awk & amp; #39; {print $6} & amp; #39; | s
# Count the current network connection status
Netstat-n | awk '/^ tcp/{++ S [$ NF]} END {for (a in S) print a, S [a]}'
# View the current port 80 connection status:
Netstat-tn | grep ": 80" | awk '{print $6}' | sort | uniq-c
Status description:
CLOSED: No connection is active or in progress
LISTEN: The server is waiting for incoming call
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
ITMED_WAIT: wait until all groups die
CLOSING: both sides attempt to close at the same time
TIME_WAIT: the other side has initialized a release.
LAST_ACK: waiting for all groups to die
Author: open-source O & M Research Office"