netstat -a 敕令将显示“所有”收集连接。为了将其限制为显示正在监听和已建立的连接(平日更有效),请改用 netstat -at 敕令。
- $ netstat -at
- Active Internet connections (servers and established)
- Proto Recv-Q Send-Q Local Address Foreign Address State
- tcp 0 0 *:ssh *:* LISTEN
- tcp 0 0 localhost:ipp *:* LISTEN
- tcp 0 0 localhost:smtp *:* LISTEN
- tcp 0 256 192.168.0.6:ssh 192.168.0.32:53550 ESTABLISHED
- tcp6 0 0 [::]:http [::]:* LISTEN
- tcp6 0 0 [::]:ssh [::]:* LISTEN
- tcp6 0 0 ip6-localhost:ipp [::]:* LISTEN
- tcp6 0 0 ip6-localhost:smtp [::]:* LISTEN
host 敕令
host 敕令就像 nslookup 一样,用来萌芽长途体系的 IP 地址,然则还供给体系的邮箱处理地址。
- $ host world.std.com
- world.std.com has address 192.74.137.5
- world.std.com mail is handled by 10 smtp.theworld.com.
nslookup 敕令
nslookup 还供给体系中(本例中是本地体系)供给 DNS 萌芽办事的信息。
dig 敕令
dig 敕令供给了很多有干系接到长途体系的信息 - 包含与我们通信的名称办事器以及萌芽须要多长时光进行响应,并经常用于故障清除。
推荐阅读
CTO练习营 | 12月3-5日,深圳,是时刻成为优良的技巧治理者了 ZTP可以实现异常快速的安排,这是企业的收集化PD>>>详细阅读
本文标题:检查Linux系统上的网络连接
地址:http://www.17bianji.com/lsqh/39429.html
1/2 1