kill process running on port mac
#First run this, to get port information (with the port you want to kill)
sudo lsof -i :3000
#Then run this, with <PID> replaced by the value in the column returned by previous command.
kill -9 <PID>sudo lsof -i tcp:3000
#To list any process listening to the port 8080:
lsof -i:8080
#To kill any process listening to the port 8080:
kill $(lsof -t -i:8080)
#or more violently:
kill -9 $(lsof -t -i:8080)sudo lsof -i :3000
lsof -n -i TCP:8080
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 54762 user 23u IPv4 XXXXXXXXX 0t0 TCP 127.0.0.1:http-alt (LISTEN)
PID // is second field in the response . Then, kill that process:
kill -9 54762 // here put PID number found on the table 54762sudo lsof -i :3000
kill -9 <PID>
Also in C++:
- what is linux
- install pavucontrol
- install vmware tools from terminal
- how to make NTFS read only file system writable in linux
- psycopg2-binary install
- check ssd or hdd linux
- how to uninstall i7z on ubuntu
- shell commands
- install react hot loader
- install docker on wsl
- scrapy spider shell from spider
- linux refresh .bashrc
- fix vscode font for terminal linux powerlevel10k
- enable vault autocomplete
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- how to isnatll snap on ubuntu linux
- bootstrap npm
- how to make yes no question in bat scrip script
- env variable for access key and secret key in terraform
- install nodemon npm
- command to fix frozen shell
- unzip a .gz file in linux
- convert all line endings to unix
- powershell beeb