1,客户端和服务器通信时,数据如果没有进行交互,我们怎么去定位问题,
首先tcpdump抓包,如果找到报文数据,说明通信正常,如果没有抓到报文数据,那接下来怎么去看呢
报文发送方和接收方端口确认
(1)netstat的使用:
[root@sino-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):6560 (null):* LISTEN
tcp 0 0 (null):2023 (null):* LISTEN
tcp 0 0 (null):53000 (null):* LISTEN
tcp 0 320 (null):ssh (null):63900 ESTABLISHED
tcp 0 0 :::ssh :::* LISTEN
udp 0 0 (null):6300 (null):*
udp 0 0 (null):63