netstat
命令用于显示各类网络有关音讯,如网络连接,路由表,接口状态
(Interface Statistics),masquerade 连接,多播成员 (Multicast
Memberships) 等等

    netstat
命令用于展现种种网络有关音信,如网络连接,路由表,接口状态
(Interface Statistics),masquerade 连接,多播成员 (Multicast
Memberships) 等等

netstat 命令用于显示各样互联网有关新闻,如网络连接,路由表,接口状态
(Interface Statistics),masquerade 连接,多播成员 (Multicast
Memberships) 等等

netstat命令,netstat命令详解

    netstat
命令用于显示各个互联网有关新闻,如互连网连接,路由表,接口状态 (Interface
Statistics),masquerade 连接,多播成员 (Multicast Memberships) 等等

1 常用选项:

    -a :(all)展现全部选项,暗许不突显LISTEN相关

    -t :(tcp)仅显示tcp相关选项

    -u :(udp)仅显示udp相关选项

    -n :以数显IP和端口,能显得数字的全方位转化成数字。

    -l :仅列出有在 Listen (监听) 的服務状态

    -p: 展现建立有关链接的次第名

    -r :呈现路由音信,路由表

    -e :展现扩充新闻,例如uid等

    -s :按顺序协议实行总结

    -c :每隔一个稳住时间,执行该netstat命令。

    -w:raw socket相关

2 -tan 显示全数tcp端口

[[email protected]
~]# netstat -ant

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN

tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

tcp 0 52 192.168.29.3:22 192.168.29.1:51029 ESTABLISHED

tcp 0 0 192.168.29.3:22 192.168.29.1:51180 ESTABLISHED

tcp6 0 0 :::111 :::* LISTEN

tcp6 0 0 :::22 :::* LISTEN

tcp6 0 0 ::1:631 :::* LISTEN

tcp6 0 0 ::1:25 :::*

3 显示全体udp端口 -uan

[[email protected]
~]# netstat -anu

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State

udp 0 0 0.0.0.0:5353 0.0.0.0:*

udp 0 0 0.0.0.0:47414 0.0.0.0:*

udp 0 0 192.168.122.1:53 0.0.0.0:*

udp 0 0 0.0.0.0:67 0.0.0.0:*

4 显示全体处于监听的tcp端口    -tnl

[[email protected]
~]# netstat -tnl

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN

tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

tcp6 0 0 :::111 :::* LISTEN

tcp6 0 0 :::22 :::* LISTEN

tcp6 0 0 ::1:631 :::* LISTEN

tcp6 0 0 ::1:25 :::* LISTEN

5 展现全部处于监听状态的udp端口 -unl

[[email protected]
~]# netstat -unl

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State

udp 0 0 0.0.0.0:5353 0.0.0.0:*

udp 0 0 0.0.0.0:47414 0.0.0.0:*

udp 0 0 0.0.0.0:20815 0.0.0.0:*

udp 0 0 192.168.122.1:53 0.0.0.0:*

udp 0 0 0.0.0.0:67 0.0.0.0:*

udp 0 0 0.0.0.0:68 0.0.0.0:*

udp 0 0 0.0.0.0:68 0.0.0.0:*

udp 0 0 0.0.0.0:9804 0.0.0.0:*

udp6 0 0 :::12799 :::*

udp6 0 0 :::37953 :::*

6 显示路由表 –rn

[[email protected]
~]# netstat -nr

Kernel IP routing table

Destination Gateway Genmask Flags MSS Window irtt Iface

0.0.0.0 192.168.29.1 0.0.0.0 UG 0 0 0 ens33

192.168.29.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33

192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

[[email protected]
~]# route -n

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

0.0.0.0 192.168.29.1 0.0.0.0 UG 100 0 0 ens33

192.168.29.0 0.0.0.0 255.255.255.0 U 100 0 0 ens33

192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

7 突显各类体协会议的计算音信

(1)展现全部端口的总计消息 netstat -s

[[email protected]
~]# netstat -s

Ip:

3808 total packets received

0 forwarded

0 incoming packets discarded

2444 incoming packets delivered

2254 requests sent out

32 outgoing packets dropped

Icmp:

676 ICMP messages received

0 input ICMP message failed.

ICMP input histogram:

destination unreachable: 148

echo replies: 528

717 ICMP messages sent

0 ICMP messages failed

ICMP output histogram:

destination unreachable: 148

echo request: 569

[……]

(2)显示 TCP 端口的计算新闻 netstat -st

[[email protected]
~]# netstat -st

IcmpMsg:

InType0: 528

InType3: 148

OutType3: 148

OutType8: 569

Tcp:

0 active connections openings

2 passive connection openings

0 failed connection attempts

0 connection resets received

2 connections established

1637 segments received

1418 segments send out

0 segments retransmited

0 bad segments received.

0 resets sent

(3)展现 UDP 端口的总括音信 netstat -su

[[email protected]
~]# netstat -su

IcmpMsg:

InType0: 528

InType3: 148

OutType3: 148

OutType8: 569

Udp:

0 packets received

140 packets to unknown port received.

0 packet receive errors

169 packets sent

0 receive buffer errors

0 send buffer errors

UdpLite:

IpExt:

InMcastPkts: 27

OutMcastPkts: 33

InBcastPkts: 766

InOctets: 410294

【澳门金沙国际】netstat命令详解,netstat命令详解状态。OutOctets: 432666

InMcastOctets: 4963

OutMcastOctets: 5444

InBcastOctets: 179503

InNoECTPkts: 3848

8 显示 PID 和进程名称 netstat -p

[[email protected]
~]# netstat -p

Active Internet connections (w/o servers)

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

tcp 0 52 centos7.3.local:ssh gateway:51029 ESTABLISHED 1552/sshd:
[email protected]

tcp 0 0 centos7.3.local:ssh gateway:51180 ESTABLISHED 1854/sshd:
[email protected]

Active UNIX domain sockets (w/o servers)

Proto RefCnt Flags Type State I-Node PID/Program name Path

unix 2 [ ] DGRAM 8520 1/systemd /run/systemd/notify

unix 2 [ ] DGRAM 8522 1/systemd /run/systemd/cgroups-agent

unix 5 [ ] DGRAM 8542 1/systemd /run/systemd/journal/socket

unix 28 [ ] DGRAM 8544 1/systemd /dev/log

unix 2 [ ] DGRAM 11419 1/systemd /run/systemd/shutdownd

unix 3 [ ] STREAM CONNECTED 23993 1276/ibus-x11

 

netstat
命令用于显示各样网络有关音讯,如互连网连接,路由表,接口状态 (Interface
Statistics),masquerade 连接,多播…

1 常用选项:

1 常用选项:

1 常用选项:

    -a :(all)呈现全数选项,暗中认可不展现LISTEN相关

    -a :(all)展现全部选项,默许不展现LISTEN相关

    -a :(all)呈现全部选项,默许不呈现LISTEN相关

    -t :(tcp)仅体现tcp相关选项

    -t :(tcp)仅展示tcp相关选项

    -t :(tcp)仅显示tcp相关选项

    -u :(udp)仅展现udp相关选项

    -u :(udp)仅展现udp相关选项

    -u :(udp)仅显示udp相关选项

    -n :以数字展现IP和端口,能展现数字的凡事转化成数字。

    -n :以数显IP和端口,能突显数字的全套转化成数字。

    -n :以数显IP和端口,能显示数字的一切转化成数字。

    -l :仅列出有在 Listen (监听) 的服務状态

    -l :仅列出有在 Listen (监听) 的服務状态

    -l :仅列出有在 Listen (监听) 的服務状态

    -p: 彰显建立有关链接的程序名

    -p: 彰显建立有关链接的主次名

    -p: 显示建立有关链接的次第名

    -r :突显路由音讯,路由表

    -r :展现路由音信,路由表

    -r :呈现路由音信,路由表

    -e :呈现扩大音讯,例如uid等

    -e :呈现扩张消息,例如uid等

    -e :呈现扩充消息,例如uid等

    -s :按梯次协议举办总结

    -s :按顺序协议实行总计

    -s :按顺序协议进行总括

    -c :每隔八个恒定时间,执行该netstat命令。

    -c :每隔两个稳定时间,执行该netstat命令。

    -c :每隔三个稳住时间,执行该netstat命令。

    -w:raw socket相关

    -w:raw socket相关

    -w:raw socket相关

2 -tan 展现全体tcp端口

2 -tan 突显全数tcp端口澳门金沙国际,

2 -tan 展现全体tcp端口

[root@centos7 ~]# netstat
-ant

[root@centos7 ~]# netstat
-ant

[root@CentOS7
~]# netstat -ant

Active Internet connections (servers and established)

Active Internet connections (servers and established)

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State

Proto Recv-Q Send-Q Local Address Foreign Address State

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN

tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN

tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN

tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

tcp 0 52 192.168.29.3:22 192.168.29.1:51029 ESTABLISHED

tcp 0 52 192.168.29.3:22 192.168.29.1:51029 ESTABLISHED

tcp 0 52 192.168.29.3:22 192.168.29.1:51029 ESTABLISHED

tcp 0 0 192.168.29.3:22 192.168.29.1:51180 ESTABLISHED

tcp 0 0 192.168.29.3:22 192.168.29.1:51180 ESTABLISHED

tcp 0 0 192.168.29.3:22 192.168.29.1:51180 ESTABLISHED

tcp6 0 0 :::111 :::* LISTEN

tcp6 0 0 :::111 :::* LISTEN

tcp6 0 0 :::111 :::* LISTEN

tcp6 0 0 :::22 :::* LISTEN

tcp6 0 0 :::22 :::* LISTEN

tcp6 0 0 :::22 :::* LISTEN

tcp6 0 0 ::1:631 :::* LISTEN

tcp6 0 0 ::1:631 :::* LISTEN

tcp6 0 0 ::1:631 :::* LISTEN

tcp6 0 0 ::1:25 :::*

tcp6 0 0 ::1:25 :::*

tcp6 0 0 ::1:25 :::*

3 呈现全体udp端口 -uan

3 显示全数udp端口 -uan

3 展现全体udp端口 -uan

[root@centos7 ~]# netstat
-anu

[root@centos7 ~]# netstat
-anu

[root@centos7 ~]# netstat
-anu

Active Internet connections (servers and established)

Active Internet connections (servers and established)

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State

Proto Recv-Q Send-Q Local Address Foreign Address State

Proto Recv-Q Send-Q Local Address Foreign Address State

udp 0 0 0.0.0.0:5353 0.0.0.0:*

udp 0 0 0.0.0.0:5353 0.0.0.0:*

udp 0 0 0.0.0.0:5353 0.0.0.0:*

udp 0 0 0.0.0.0:47414 0.0.0.0:*

udp 0 0 0.0.0.0:47414 0.0.0.0:*

udp 0 0 0.0.0.0:47414 0.0.0.0:*

udp 0 0 192.168.122.1:53 0.0.0.0:*

udp 0 0 192.168.122.1:53 0.0.0.0:*

udp 0 0 192.168.122.1:53 0.0.0.0:*

udp 0 0 0.0.0.0:67 0.0.0.0:*

udp 0 0 0.0.0.0:67 0.0.0.0:*

udp 0 0 0.0.0.0:67 0.0.0.0:*

4 呈现全体处于监听的tcp端口    -tnl

4 彰显全数处于监听的tcp端口    -tnl

4 突显全体处于监听的tcp端口    -tnl

[root@centos7 ~]# netstat
-tnl

[root@centos7 ~]# netstat
-tnl

[root@centos7 ~]# netstat
-tnl

Active Internet connections (only servers)

Active Internet connections (only servers)

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State

Proto Recv-Q Send-Q Local Address Foreign Address State

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN

tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN

tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN

tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

tcp6 0 0 :::111 :::* LISTEN

tcp6 0 0 :::111 :::* LISTEN

tcp6 0 0 :::111 :::* LISTEN

tcp6 0 0 :::22 :::* LISTEN

tcp6 0 0 :::22 :::* LISTEN

tcp6 0 0 :::22 :::* LISTEN

tcp6 0 0 ::1:631 :::* LISTEN

tcp6 0 0 ::1:631 :::* LISTEN

tcp6 0 0 ::1:631 :::* LISTEN

tcp6 0 0 ::1:25 :::* LISTEN

tcp6 0 0 ::1:25 :::* LISTEN

tcp6 0 0 ::1:25 :::* LISTEN

5 展现全部处于监听状态的udp端口 -unl

5 突显全体处于监听状态的udp端口 -unl

5 展现全部处于监听状态的udp端口 -unl

[root@centos7 ~]# netstat
-unl

[root@centos7 ~]# netstat
-unl

[root@centos7 ~]# netstat
-unl

Active Internet connections (only servers)

Active Internet connections (only servers)

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State

Proto Recv-Q Send-Q Local Address Foreign Address State

Proto Recv-Q Send-Q Local Address Foreign Address State

udp 0 0 0.0.0.0:5353 0.0.0.0:*

udp 0 0 0.0.0.0:5353 0.0.0.0:*

udp 0 0 0.0.0.0:5353 0.0.0.0:*

udp 0 0 0.0.0.0:47414 0.0.0.0:*

udp 0 0 0.0.0.0:47414 0.0.0.0:*

udp 0 0 0.0.0.0:47414 0.0.0.0:*

udp 0 0 0.0.0.0:20815 0.0.0.0:*

udp 0 0 0.0.0.0:20815 0.0.0.0:*

udp 0 0 0.0.0.0:20815 0.0.0.0:*

udp 0 0 192.168.122.1:53 0.0.0.0:*

udp 0 0 192.168.122.1:53 0.0.0.0:*

udp 0 0 192.168.122.1:53 0.0.0.0:*

udp 0 0 0.0.0.0:67 0.0.0.0:*

udp 0 0 0.0.0.0:67 0.0.0.0:*

udp 0 0 0.0.0.0:67 0.0.0.0:*

udp 0 0 0.0.0.0:68 0.0.0.0:*

udp 0 0 0.0.0.0:68 0.0.0.0:*

udp 0 0 0.0.0.0:68 0.0.0.0:*

udp 0 0 0.0.0.0:68 0.0.0.0:*

udp 0 0 0.0.0.0:68 0.0.0.0:*

udp 0 0 0.0.0.0:68 0.0.0.0:*

udp 0 0 0.0.0.0:9804 0.0.0.0:*

udp 0 0 0.0.0.0:9804 0.0.0.0:*

udp 0 0 0.0.0.0:9804 0.0.0.0:*

udp6 0 0 :::12799 :::*

udp6 0 0 :::12799 :::*

udp6 0 0 :::12799 :::*

udp6 0 0 :::37953 :::*

udp6 0 0 :::37953 :::*

udp6 0 0 :::37953 :::*

6 展现路由表 –rn

6 突显路由表 –rn

6 展现路由表 –rn

[root@centos7 ~]# netstat
-nr

[root@centos7 ~]# netstat
-nr

[root@centos7 ~]# netstat
-nr

Kernel IP routing table

Kernel IP routing table

Kernel IP routing table

Destination Gateway Genmask Flags MSS Window irtt Iface

Destination Gateway Genmask Flags MSS Window irtt Iface

Destination Gateway Genmask Flags MSS Window irtt Iface

0.0.0.0 192.168.29.1 0.0.0.0 UG 0 0 0 ens33

0.0.0.0 192.168.29.1 0.0.0.0 UG 0 0 0 ens33

0.0.0.0 192.168.29.1 0.0.0.0 UG 0 0 0 ens33

192.168.29.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33

192.168.29.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33

192.168.29.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33

192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

[root@centos7 ~]# route -n

[root@centos7 ~]# route -n

[root@centos7 ~]# route -n

Kernel IP routing table

Kernel IP routing table

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

Destination Gateway Genmask Flags Metric Ref Use Iface

Destination Gateway Genmask Flags Metric Ref Use Iface

0.0.0.0 192.168.29.1 0.0.0.0 UG 100 0 0 ens33

0.0.0.0 192.168.29.1 0.0.0.0 UG 100 0 0 ens33

0.0.0.0 192.168.29.1 0.0.0.0 UG 100 0 0 ens33

192.168.29.0 0.0.0.0 255.255.255.0 U 100 0 0 ens33

192.168.29.0 0.0.0.0 255.255.255.0 U 100 0 0 ens33

192.168.29.0 0.0.0.0 255.255.255.0 U 100 0 0 ens33

192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

7 突显各种体协会议的总计音讯

7 展现每一个体协会议的计算新闻

7 展现各类体协会议的计算消息

(1)呈现全部端口的总计音信 netstat -s

(1)显示全数端口的计算音信 netstat -s

(1)展现全数端口的总计消息 netstat -s

[root@centos7 ~]# netstat
-s

[root@centos7 ~]# netstat
-s

[root@centos7 ~]# netstat
-s

Ip:

Ip:

Ip:

3808 total packets received

3808 total packets received

3808 total packets received

0 forwarded

0 forwarded

0 forwarded

0 incoming packets discarded

0 incoming packets discarded

0 incoming packets discarded

2444 incoming packets delivered

2444 incoming packets delivered

2444 incoming packets delivered

2254 requests sent out

2254 requests sent out

2254 requests sent out

32 outgoing packets dropped

32 outgoing packets dropped

32 outgoing packets dropped

Icmp:

Icmp:

Icmp:

676 ICMP messages received

676 ICMP messages received

676 ICMP messages received

0 input ICMP message failed.

0 input ICMP message failed.

0 input ICMP message failed.

ICMP input histogram:

ICMP input histogram:

ICMP input histogram:

destination unreachable: 148

destination unreachable: 148

destination unreachable: 148

echo replies: 528

echo replies: 528

echo replies: 528

717 ICMP messages sent

717 ICMP messages sent

717 ICMP messages sent

0 ICMP messages failed

0 ICMP messages failed

0 ICMP messages failed

ICMP output histogram:

ICMP output histogram:

ICMP output histogram:

destination unreachable: 148

destination unreachable: 148

destination unreachable: 148

echo request: 569

echo request: 569

echo request: 569

[……]

[……]

[……]

(2)展现 TCP 端口的总计音信 netstat -st

(2)展现 TCP 端口的总结音讯 netstat -st

(2)展现 TCP 端口的总计音讯 netstat -st

[root@centos7 ~]# netstat
-st

[root@centos7 ~]# netstat
-st

[root@centos7 ~]# netstat
-st

IcmpMsg:

IcmpMsg:

IcmpMsg:

InType0: 528

InType0: 528

InType0: 528

InType3: 148

InType3: 148

InType3: 148

OutType3: 148

OutType3: 148

OutType3: 148

OutType8: 569

OutType8: 569

OutType8: 569

Tcp:

Tcp:

Tcp:

0 active connections openings

0 active connections openings

0 active connections openings

2 passive connection openings

2 passive connection openings

2 passive connection openings

0 failed connection attempts

0 failed connection attempts

0 failed connection attempts

0 connection resets received

0 connection resets received

0 connection resets received

2 connections established

2 connections established

2 connections established

1637 segments received

1637 segments received

1637 segments received

1418 segments send out

1418 segments send out

1418 segments send out

0 segments retransmited

0 segments retransmited

0 segments retransmited

0 bad segments received.

0 bad segments received.

0 bad segments received.

0 resets sent

0 resets sent

0 resets sent

(3)展现 UDP 端口的总结音讯 netstat -su

(3)突显 UDP 端口的总结音信 netstat -su

(3)突显 UDP 端口的总计信息 netstat -su

[root@centos7 ~]# netstat
-su

[root@centos7 ~]# netstat
-su

[root@centos7 ~]# netstat
-su

IcmpMsg:

IcmpMsg:

IcmpMsg:

InType0: 528

InType0: 528

InType0: 528

InType3: 148

InType3: 148

InType3: 148

OutType3: 148

OutType3: 148

OutType3: 148

OutType8: 569

OutType8: 569

OutType8: 569

Udp:

Udp:

Udp:

0 packets received

0 packets received

0 packets received

140 packets to unknown port received.

140 packets to unknown port received.

140 packets to unknown port received.

0 packet receive errors

0 packet receive errors

0 packet receive errors

169 packets sent

169 packets sent

169 packets sent

0 receive buffer errors

0 receive buffer errors

0 receive buffer errors

0 send buffer errors

0 send buffer errors

0 send buffer errors

UdpLite:

UdpLite:

UdpLite:

IpExt:

IpExt:

IpExt:

InMcastPkts: 27

InMcastPkts: 27

InMcastPkts: 27

OutMcastPkts: 33

OutMcastPkts: 33

OutMcastPkts: 33

InBcastPkts: 766

InBcastPkts: 766

InBcastPkts: 766

InOctets: 410294

InOctets: 410294

InOctets: 410294

OutOctets: 432666

OutOctets: 432666

OutOctets: 432666

InMcastOctets: 4963

InMcastOctets: 4963

InMcastOctets: 4963

OutMcastOctets: 5444

OutMcastOctets: 5444

OutMcastOctets: 5444

InBcastOctets: 179503

InBcastOctets: 179503

InBcastOctets: 179503

InNoECTPkts: 3848

InNoECTPkts: 3848

InNoECTPkts: 3848

8 呈现 PID 和进度名称 netstat -p

8 呈现 PID 和进程名称 netstat -p

8 展现 PID 和经过名称 netstat -p

[root@centos7 ~]# netstat
-p

[root@centos7 ~]# netstat
-p

[root@centos7 ~]# netstat
-p

Active Internet connections (w/o servers)

Active Internet connections (w/o servers)

Active Internet connections (w/o servers)

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

tcp 0 52 centos7.3.local:ssh gateway:51029 ESTABLISHED 1552/sshd:
root@pts

tcp 0 52 centos7.3.local:ssh gateway:51029 ESTABLISHED 1552/sshd:
root@pts

tcp 0 52 centos7.3.local:ssh gateway:51029 ESTABLISHED 1552/sshd:
root@pts

tcp 0 0 centos7.3.local:ssh gateway:51180 ESTABLISHED 1854/sshd:
root@pts

tcp 0 0 centos7.3.local:ssh gateway:51180 ESTABLISHED 1854/sshd:
root@pts

tcp 0 0 centos7.3.local:ssh gateway:51180 ESTABLISHED 1854/sshd:
root@pts

Active UNIX domain sockets (w/o servers)

Active UNIX domain sockets (w/o servers)

Active UNIX domain sockets (w/o servers)

Proto RefCnt Flags Type State I-Node PID/Program name Path

Proto RefCnt Flags Type State I-Node PID/Program name Path

Proto RefCnt Flags Type State I-Node PID/Program name Path

unix 2 [ ] DGRAM 8520 1/systemd /run/systemd/notify

unix 2 [ ] DGRAM 8520 1/systemd /run/systemd/notify

unix 2 [ ] DGRAM 8520 1/systemd /run/systemd/notify

unix 2 [ ] DGRAM 8522 1/systemd /run/systemd/cgroups-agent

unix 2 [ ] DGRAM 8522 1/systemd /run/systemd/cgroups-agent

unix 2 [ ] DGRAM 8522 1/systemd /run/systemd/cgroups-agent

unix 5 [ ] DGRAM 8542 1/systemd /run/systemd/journal/socket

unix 5 [ ] DGRAM 8542 1/systemd /run/systemd/journal/socket

unix 5 [ ] DGRAM 8542 1/systemd /run/systemd/journal/socket

unix 28 [ ] DGRAM 8544 1/systemd /dev/log

unix 28 [ ] DGRAM 8544 1/systemd /dev/log

unix 28 [ ] DGRAM 8544 1/systemd /dev/log

unix 2 [ ] DGRAM 11419 1/systemd /run/systemd/shutdownd

unix 2 [ ] DGRAM 11419 1/systemd /run/systemd/shutdownd

unix 2 [ ] DGRAM 11419 1/systemd /run/systemd/shutdownd

unix 3 [ ] STREAM CONNECTED 23993 1276/ibus-x11

unix 3 [ ] STREAM CONNECTED 23993 1276/ibus-x11

unix 3 [ ] STREAM CONNECTED 23993 1276/ibus-x11

 

 

正文永久更新链接地址:http://www.linuxidc.com/Linux/2017-06/144864.htm

澳门金沙国际 1

相关文章