一、查看端口
打开cmd,查看端口指令
netstat -na以查看系统所有端口状态,找到445端口,就可以查看该端口状态了。
字符过滤,查询方法:
netstat -ano -p tcp | find "445"TODO 怎么判断是否已经关闭?
二、运行这两条命令:
C:\Windows\system32>netsh advfirewall firewall add rule name=”deny445” dir=in protocol=tcp localport=445 action=block
C:\Windows\system32>netsh firewall set portopening protocol=tcp port=445 mode=disable name=deny445 参考资料
win7如何关闭端口?445端口怎么关闭?
在win上面关闭445端口的方法


发布评论