How to close the port in Windows cmd

1. Win+r pops up the program box - enter cmd

insert image description here

2. Enter netstat -ano |findstr (the port that needs to be closed - take port 8080 as an example)

insert image description here

3. Enter taskkill /t /f /pid (the process number obtained according to the port)

or use

taskkill /pid process number -t -f can be

insert image description here

Guess you like

Origin blog.csdn.net/weixin_47852232/article/details/129062968