- 浏览: 134740 次
- 性别:
- 来自: 成都
文章分类
最新评论
【基本介绍】
这里介绍netstat命令返回的结果status列的状态说明。
【状态介绍】
这里介绍netstat命令返回的结果status列的状态说明。
【状态介绍】
[root@sparkVM script]# netstat -tunlp | head -10 Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1842/sshd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1727/cupsd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2180/master
State The state of the socket. Since there are no states in raw mode and usually no states used in UDP, this column may be left blank. Nor-mally this can be one of several values: ESTABLISHED(已创建连接,传输数据中) The socket has an established connection. SYN_SENT(尝试创建连接) The socket is actively attempting to establish a connection. SYN_RECV(接收到请求,等待确认) A connection request has been received from the network. FIN_WAIT1(socket连接关闭) The socket is closed, and the connection is shutting down. FIN_WAIT2(socket连接关闭,等待远端关闭) Connection is closed, and the socket is waiting for a shutdown from the remote end. TIME_WAIT(等待处理的请求) The socket is waiting after close to handle packets still in the network. CLOSED The socket is not being used.(无连接) CLOSE_WAIT(远端关闭等待socket关闭) The remote end has shut down, waiting for the socket to close. LAST_ACK(远端关闭,等待反馈) The remote end has shut down, and the socket is closed. Waiting for acknowledgement. LISTEN (服务器等待进入) The socket is listening for incoming connections. Such sockets are not included in the output unless you specify the --listen-ing (-l) or --all (-a) option. CLOSING(两边关闭) Both sockets are shut down but we still don’t have all our data sent. UNKNOWN(未知状态) The state of the socket is unknown.
发表评论
-
linux shell - 远端修改非root密码
2015-01-09 20:40 955【基本介绍】 通过远端修改普通用户密码,而passwd --s ... -
linux shell - broken pip error
2015-01-07 15:36 2664【基本介绍】 这里我们介绍发生broken pipe错误的原因 ... -
linux locate - find files by name
2014-12-17 17:46 560【基本介绍】 这里我们介绍locate命令,用来查找文件。 ... -
linux ssh - GSSAPIAuthentication
2014-12-10 14:58 2000【基本介绍】 最近公司搬家,发现合作伙伴的服务器的用ftp工具 ... -
linux tar - 压缩解压
2014-12-01 16:04 969【基本介绍】 今天遇到要添加文件到tar文件里面,所以在这里介 ... -
linux parameter substitution - 字符串/变量处理
2014-11-17 15:56 777【基本介绍】 这里我们介绍bash里面对字符串,变量等的替换等 ... -
linux set - set variables and set positional parameters
2014-11-10 18:26 406【基本介绍】 set是shell的内置命令。可以用来设置修改变 ... -
linux nc - arbitrary TCP and UDP connections and listens
2014-10-31 17:46 758【基本介绍】 nc是可以打开任意端口的TCP/UDP连接和监听 ... -
linux 报错集 - Cannot retrieve metalink for repository: epel. Please verify its pat
2014-10-29 15:12 925【基本介绍】 运行yum报错Error: Cannot ret ... -
linux awk - awk tutorial
2014-10-21 10:47 458【基本介绍】 awk是一款强大的对文件内容进行处理的软件,可以 ... -
linux ps - processes
2014-10-20 14:17 1219【基本介绍】 ps - report a snapshot o ... -
linux lsof - list open files
2014-10-17 17:31 711【基本介绍】 lsof - list open files I ... -
linux - 网络连接状态
2014-10-13 11:00 1350【基本情况】 这里介绍 ... -
linux netstat - Print network connections, routing tables, interface statistics,
2014-10-13 10:37 978【基本介绍】 netstat - Print network ... -
linux vmstat - Report virtual memory statistics
2014-10-10 17:39 692【基本介绍】 vmstat - Report virtual ... -
linux yum - yum warning: rpmts_HdrFromFdno
2014-10-09 15:08 560【基本介绍】 在yum安装软件的时候有时候会报warning: ... -
Linux ip subnet mask - 网段分析
2014-09-24 19:22 1292【基本介绍】 网段的分析可以帮助我们查看两个局域地址是否可以互 ... -
linux curl - curl 上传下载
2014-09-19 11:45 2074【基本介绍】 curl is a tool to tra ... -
linux mkpasswd - 密码生成器
2014-09-18 17:18 1380【基本介绍】 作为linux admin要经常创建用户,并初始 ... -
linux dd - dd测试硬盘速度
2014-09-05 18:42 816【基本介绍】 这里我们使用dd命令来测试硬盘的读写速度 dd ...
相关推荐
netstat -na 结果
Linux系统根据端口号停止相应的服务,netstat,rmsock的运用
netstat 命令的详细说明,凑字数很困难,慢慢凑
netstat-monitor 是一个命令行工具用来监控网络连接,其输出结果跟使用了 netstat 命令参数 "netstat --inet -alp" 一样。Netstat-monitor 可持续运行并报告新的连接,也可通过过滤器来限制显示所需的内容。
windows 中没有提供给我们可用的netstat -an 的源码,本人利用C++的函数实现了这一功能……
端口 查看 中文版 解压后就可以用了 无需安装!!! 很好用的.
Linux 中关于网络的netstat命令,相关内容。
Linux netstat命令详解 netstat 是网络编程常用的命令
Linux网络状态工具netstat和ss使用详解 介绍Linux下netstat和ss的使用
解决端口占用netstat -ano
经常,我们在启动应用的时候发现系统需要的端口被别的程序占用,如何知道谁占有了我们需要的端口,很多人都比较头疼,文档介绍了一种非常简单的方法,希望对大家有用
netstat源码实现
从整体上看,netstat的输出结果可以分为两个部分: 一个是Active Internet connections,称为有源TCP连接,其中"Recv-Q"和"Send-Q"指 的是接收队列和发送队列。这些数字一般都应该是0。如果不是则表示软件包正在...
openwrt-packages-netstat-nat 这是OpenWrt的软件包,已在OpenWrt 15.05.1 / LEDE 17.01.4上进行了测试。 如何安装二进制包 请参阅 。 如何建造 要构建这些软件包,请将以下行添加到OpenWrt buildroot中的feeds....
如何用netstat命令查看端口占用问题的技巧.docx
Linux运维-操作系统 教程 从入门到精通101课-49-49网络命令-ifconfig netstat pi.mp4
Linux netstat命令用于显示网络状态。 利用netstat指令可让你得知整个Linux系统的网络情况。 语法netstat [-acCeFghilMnNoprstuvVwx][-A][--ip] 参数说明: -a或–all 显示所有连线中的Socket。 -A或– 列出该网络...
如何查询端口用及停止程序的方被占法 收藏 端口如果被其他程序占用就不能正常启动,比如...在命令提示符状态下键入“netstat -a -n”,按下回车键后就可以看到以数字形式显示的TCP和UDP连接的端口号及状态(如图)。
curses --with-time --with-getifaddrs --with-sysctl --with-sysctldisk --with-procnetdev --with-partitions --with-libstatgrab --with-netstatlinux --with-netstatnetbsd --with-strip --build=i386-linux --...