重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

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使用正则表达式查看端口
文章链接:http://cqcxhl.cn/article/jsjchh.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP