命令行,防火墙,入站规则
--
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
添加:
netsh advfirewall firewall add rule name="12003p" protocol=TCP dir=in localport=12003 action=allow
dir=in 入站规则;protocol=TCP tcp协议;name="12003p" 规则名; action=allow 允许;localport=12003 本地端口 12003 ;
删除:
netsh advfirewall firewall delete rule name="12003p"
做批处理时,先删除后加。
--

更多精彩