端口号占用:
netstat -an | findstr
示例如下:
D:\>netstat -an | findstr 80
TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING
查看占用进程ID:
netstat -ano | findstr 80
示例如下:
D:\>netstat -ano | findstr 80
TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING 6940
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 6940