Discord OAuth Redirects
Find Process By Port
How to Access Ubuntu Server
Increase MySQL Idle Timeout
LEMN Stack Install
NGINX Upload Limits [413 Entity Too Large]
Transfer Files Between Servers
TypeError: Setting User Fix
Using Node Version Manager
Using Screen Sessions
Segmentation Fault Error
Weblutions Documentation > Knowledgebase > Find Process By Port
Find Process By Port
To search for processes using a specific port run the following commands. This can be useful if you need to end/stop a service running on a specific port. To do this follow the below instructions.
Run the lsof
command below, change the port if needed to what you need.
lsof -i tcp:3000
You'll get the results listed like this.
Look under the PID column and copy that process ID into the below command to stop the process.
kill 9506
This command ends/stops the process so it is no longer running.
Review this page
ports pid lsof kill
1 recommend this page