码迷,mamicode.com
首页 > Web开发 > 详细

netstat 查看端口

时间:2018-04-26 17:01:06      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:gre   lin   通用   window   linu   推荐   服务   str   tcp、udp   

查看所有端口(tcp、udp)
netstat -an

windows通用命令
netstat -an

查端口是否被使用
netstat -an | findstr 8000
netstat -an | grep :

Linux中,强烈推荐,同时查看端口和服务名称
只查看tcp端口 :netstat -lntp
只查看udp端口:netstat -lnup

netstat 查看端口

标签:gre   lin   通用   window   linu   推荐   服务   str   tcp、udp   

原文地址:https://www.cnblogs.com/andy9468/p/8952889.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!