RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
Windows使用正则表达式查看端口

Windows使用正则表达式查看端口

成都创新互联-专业网站定制、快速模板网站建设、高性价比甘德网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式甘德网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖甘德地区。费用合理售后完善,十年实体公司更值得信赖。

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

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

Windows使用正则表达式查看端口

@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
::这是我试验用于检测各项服务是否开启


本文标题:Windows使用正则表达式查看端口
链接URL:http://sczitong.cn/article/jsjchh.html