1,客户端和服务器通信时,数据如果没有进行交互,我们怎么去定位问题,
首先tcpdump抓包,如果找到报文数据,说明通信正常,如果没有抓到报文数据,那接下来怎么去看呢
报文发送方和接收方端口确认
(1)netstat的使用:
[root@platform:/root]# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 (null):ssh (null):* LISTEN
tcp 0 0 (null):4560 (null):* LISTEN
tcp 0 0 (null):2000 (null):* LISTEN
tcp 0 0 (null):43000 (null):* LISTEN
tcp 0 320 (null):ssh (null):43900 ESTABLISH