kill port
sudo kill -9 `sudo lsof -t -i:9001`
kill port
sudo kill -9 `sudo lsof -t -i:9001`
windows kill port
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
kill port windows
netstat -ano | findstr :<PORT>
(Replace <PORT> with the port number you want, but keep the colon)
Step 2:
Next, run the following command:
taskkill /PID <PID> /F
kill port
// Option 1: if you have [email protected]^ version
npx kill-port 8080
// Linux
kill -9 $(lsof -t -i tcp:8080)
// Windows command line:
for /f "tokens=5" %a in ('netstat -aon ^| find ":8080" ^| find "LISTENING"') do taskkill /f /pid %a
// Windows bat-file:
for /f "tokens=5" %%a in ('netstat -aon ^| find ":8080" ^| find "LISTENING"') do taskkill /f /pid %%a
kill a process by looking up the port in windows
//Open command prompt and run the following commands
C:\Users\username>netstat -o -n -a | findstr 0.0:3000
TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING 3116
C:\Users\username>taskkill /F /PID 3116
//here 3116 is the process ID
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us