博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
netstat 显示当前网络连接的统计信息
阅读量:5258 次
发布时间:2019-06-14

本文共 2022 字,大约阅读时间需要 6 分钟。

C:\Users\Administrator\Desktop\hsqldb-2.3.2\data>netstat -h

 

Displays protocol statistics and current TCP/IP network connections.

 

NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-t] [interval]

 

-a   Displays all connections and listening ports.显示所有的连接和监听的端口

 

-b   Displays the executable(可执行文件) involved in creating each connection or listening port. 显示用于创建每个连接或端口的可执行文件

   In some cases well-known executables host multiple independent components, 有些情况下,某些知名的可执行文件与多个独立的组件相关

   and in these cases the sequence of components involved in creating the connection or listening port is displayed.

    In this case the executable name is in [] at the bottom,

    on top is the component it called,

    and so forth until TCP/IP was reached.

    Note that this option can be time-consuming and will fail unless you have sufficient permissions.

 

 

-e   Displays Ethernet statistics. This may be combined with the -s option.

-f   Displays Fully Qualified Domain Names (FQDN) for foreign addresses.

 

-n   Displays addresses and port numbers in numerical form.

 

-o   Displays the owning process ID associated with each connection. 显示每个连接关联的进程ID

 

-p proto   Shows connections for the protocol specified by proto; proto may be any of: TCP, UDP, TCPv6, or UDPv6.

       显示指定协议的连接

 If used with the -s option to display per-protocol statistics,

       proto may be any of:IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.

 

 

-r   Displays the routing table. 显示路由表

-s   Displays per-protocol statistics. 显示每个协议的统计数据

     By default, statistics are shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6;

     the -p option may be used to specify a subset of the default.

 

 

-t   Displays the current connection offload state.显示当前连接的卸载状态

interval     Redisplays selected statistics, pausing interval seconds between each display.

                指定间隔多少秒,重新显示统计数据,不指定仅显示一次

        Press CTRL+C to stop redisplaying statistics.

        If omitted, netstat will print the current configuration information once.

转载于:https://www.cnblogs.com/asnjudy/p/4590749.html

你可能感兴趣的文章
游戏产品前期提案审案流程
查看>>
iOS 如何监听用户在手机设置里改变了系统的时间?
查看>>
C++指针引发的巨大谜题
查看>>
linux内核学习:进程调度
查看>>
typedef 用户自定义的数据类型取一个新的名字
查看>>
TOMCAT内存大小调整
查看>>
打开指定文件或文件夹
查看>>
tomcat 配置图片虚拟路径不起作用解决办法
查看>>
如何查询收发的短信息
查看>>
UVA 111 简单DP 但是有坑
查看>>
Mysql 数据库操作
查看>>
Python OS模块
查看>>
Python item的使用
查看>>
Java关键字:transient,strictfp和volatile简介
查看>>
SQL表中的自连接定义与用法示例
查看>>
hdu 1032 The 3n + 1 problem
查看>>
static关键字
查看>>
转:linux终端常用快捷键
查看>>
009.栈实现队列
查看>>
A-Softmax的总结及与L-Softmax的对比——SphereFace
查看>>