Reputation: 3288
How to find the process ID's
of the processes that are listening to a particular port
, when you don't have the sudo
privilieges ?
Upvotes: 3
Views: 3607
Reputation: 1586
I needed to list processes on Jenkins which are listening on a port, and when they started:
lsof -t -i :4848 | xargs ps -o pid,etime,start,command -p
Upvotes: 0