User Tools

Site Tools


fakplpom

Differences

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

Link to this comparison view

Next revision
Previous revision
fakplpom [2022/04/19 13:02] – создано 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 ======
  
  
  
-  - You can try netstat+ 
 +==== 1. You can try netstat ==== 
  
  <code>netstat -vanp tcp | grep 3000</code>  <code>netstat -vanp tcp | grep 3000</code>
  
  
-  - 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>
  
  
-  - 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.1650373371.txt.gz · Last modified: 2023/09/14 06:06 (external edit)