User Tools

Site Tools


fakplpom

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
fakplpom [2022/04/19 13:03] chifekfakplpom [2023/09/14 06:06] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Find (and kill) process locking port 3000 on Mac ======+====== Find (and kill) process locking port 3000 on Mac and Linux ======
  
  
  
-1. You can try netstat+ 
 +==== 1. You can try netstat ==== 
  
  <code>netstat -vanp tcp | grep 3000</code>  <code>netstat -vanp tcp | grep 3000</code>
  
  
-2. For macOS El Capitan and newer (or if your netstat doesn't support -p), use lsof+==== 2. For macOS El Capitan and newer (or if your netstat doesn't support -p), use lsof ==== 
  
  <code>lsof -i tcp:3000 </code>  <code>lsof -i tcp:3000 </code>
  
  
-3. For Centos 7 use:+==== 3. For Centos 7 use: ==== 
  
  <code>netstat -vanp --tcp | grep 3000</code>  <code>netstat -vanp --tcp | grep 3000</code>
 +
 +
 +
 +
 +
 +Then you can kill the process like that:
 +
 +<code>kill {pid_of_process}</code>
fakplpom.1650373396.txt.gz · Last modified: 2023/09/14 06:06 (external edit)