1. View the current port number
Netstat-an
Command help:
>netstat--help
2. Filter
>NETSTAT-AN|FINDSTR 443
Use the following command to find the PID (process ID) that occupies the specified port
NETSTAT-ANO|FINDSTR < specified port number >
NETSTAT-ANO|FINDSTR 443--View process number can be killed in Task Manager
C:\USERS\ADMINISTRATOR>NETSTAT-AN|FINDSTR 443
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING
TCP 192.168.1.243:49362 119.147.207.172:443 established
TCP 192.168.1.243:54871 153.35.88.181:443 established
TCP 192.168.1.243:54872 221.5.10.204:443 established
TCP 192.168.1.243:54882 125.39.135.242:443 established
TCP 192.168.1.243:54884 140.205.134.25:443 established
TCP 192.168.1.243:55188 74.125.204.113:443 syn_sent
TCP 192.168.1.243:55189 74.125.204.113:443 syn_sent
TCP 192.168.1.243:55190 74.125.204.101:443 syn_sent
TCP 192.168.1.243:55191 74.125.204.101:443 syn_sent
TCP [::]:443 [::]:0 LISTENING
C:\users\administrator>
Kill process
So how do we kill the process?
Taskkill/pid 7580/f
3. If you want to see which process a process is specific, you can use the following command
tasklist | Findstr "5584" (note 5584 is the process ID that is PID)
Keep Finishing ...
This article is from the "Ningzhiyuan @it sharing" blog, make sure to keep this source http://renzhiyuan.blog.51cto.com/10433137/1827728
Windows Small Commands Simple grooming