Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Check if the port is occupied

Shulou Source: shulou.com Published: 2022-06-03 07:16:58 11月23日 Update

Check to see if the local port is occupied:

Netstat-ano | findstr "port number"

Find the port and take a look at the last column, which is the process number pid

And then,

Tasklist | findstr "pid"

If you want to kill

Taskkill / T / F / PID {pid}

Where / T is tree kill

/ F is forced to kill.

Tags: Port slogan process native mandatory Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi vpn NVidia Docker Microsoft