dev-resources.site
for different kinds of informations.
How to Kill a Local Host in Linux
Published at
6/8/2022
Categories
Author
Rabeeh Ebrahim
Categories
1 categories in total
open
Sometimes when you try to run a port through terminal, you may end up getting errors like 'address already in use'.
I get this even when I disconnect the host. Although it happens sometimes only. Follow this steps to Kill the local Host.
Step 1:
Open Your Linux Terminal
Step 2:
Types this command below.
sudo lsof -iTCP:3000 -sTCP:LISTEN
Please note that: type your port address instead of 3000
Step 3:
You get an output similar to this.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 25215 user 20u IPv6 240148 0t0 TCP *:hbci (LISTEN)
note that PID
Step 4:
type kill 25215
Voila, you killed it :)
Articles
9 articles in total
Google Authentication in MERN Stack
read article
Demystifying HTTP Status Codes: Essential Knowledge for Node.js Newbies
read article
Deploy Your Nodejs app on Render.com
read article
How I Get Into The Open-Source World
read article
How to Deploy a React App
read article
Mom in Tech (MongoDB Atlas Hackathon 2022 on DEV)
read article
Is it okay to post every (programming related) medium blogs to dev.to?
read article
How To Remove The Uncommitted Changes in Git
read article
How to Kill a Local Host in Linux
currently reading
Featured ones: