可以使用man netstat查看TCP的各种状态信息描述  
ESTABLISHED       socket已经建立连接  
CLOSED            socket没有被使用,无连接  
CLOSING           服务器端和客户端都同时关闭连接  
CLOSE_WAIT        等待关闭连接  
TIME_WAIT         表示收到了对方的FIN报文,并发送出了ACK报文,等待2MSL后就可回到CLOSED状态  
LAST_ACK          远端关闭,当前socket被动关闭后发送FIN报文,等待对方ACK报文  
LISTEN            监听状态  
SYN_RECV          接收到SYN报文  
SYN_SENT          已经发送SYN报文  
FIN_WAIT1         The socket is closed, and the connection is shutting down  
FIN_WAIT2         Connection is closed, and the socket is waiting for a shutdown from the remote end. 

相关文章:

  • 2022-12-23
  • 2023-04-07
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2022-01-28
  • 2021-07-02
  • 2021-08-13
猜你喜欢
  • 2021-08-04
  • 2022-12-23
  • 2021-04-06
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案