栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

netstat 常用命令手册

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

netstat 常用命令手册

Windows系统下

netstat -an                               #查看所有连接
netstat -aop tcp                       #过滤tcp协议
netstat -aon | findstr 8800      #过滤端口  8800

Linux环境下

netstat -a                                 #查看所有连接
netstat -an                              #查看所有连接,不显示主机、端口和用户名
netstat -at                                #显示tcp连接
netstat -au                              #显示udp连接
netstat -an |grep ":8800"           #过滤端口8800
netstat -tunlp | grep ssh           #查找运行的进程
netstat -tunlp | grep 80 | awk '{print $7}' | cut -d/ -f1    #通过端口找进程id
netstat -l                                                             #处于监听listen状态的连接
netstat -pt                                            #显示pid和进程名字

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/945978.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号