首页 > Windows开发 > 详细

windows查看端口命令

时间:2017-10-12 22:32:59      阅读:327      评论:0      收藏:0      [点我收藏+]

技术分享

netstat --help#获取帮助
netstat -an > c:\aaa.txt #将显示的结果输入到C盘aaa.txt文件中

netstat -ano | find “443”#查看443端口

技术分享

@echo off
netstat -an > c:\t.txt #在C盘创建文件名为t.txt
type c:\t.txt | find ":21" > tmp.txt && echo "ftp is running...."
type c:\t.txt | find ":80" > tmp.txt && echo "http is running...."
pause
type c:\t.txt | find ":123" > tmp.txt && echo "hehe is running...."
pause
del c:\t.txt
::这是我试验用于检测各项服务是否开启

本文出自 “马广杰——博客” 博客,请务必保留此出处http://maguangjie.blog.51cto.com/11214671/1971626

windows查看端口命令

原文:http://maguangjie.blog.51cto.com/11214671/1971626

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!