Find Port Occupancy

First win+r enter cmd to open the command line window

Find all ports

Type "netstat -ano" and press enter

netstat -ano

Find the specified port

If we want to find port 6379, enter netstat -ano|findstr 6379, press Enter, we can see that the pid is 11044

netstat -ano|findstr 6379

Check which process the port is occupied by

Enter tasklist|findstr pid number , press Enter to see who is occupying port 6379, here we see that the redis-server.exe process occupies the port

tasklist|findstr 11044

Guess you like

Origin blog.csdn.net/qq_40323256/article/details/124250706