How to idenitfy a process ID using the TCP Port
October 23, 2011 at 1:57 pm 1 comment
Recently i had an issue in one of my linux machines, where I was unable to start the acronis_agent service which listens on TCP Port ;
Later I realised that already so many processes are listening on the TCP port.
To check the open connection for a TCP port
# netstat -an | grep 9876 ( In my case acronis_agent uses TCP 9876)
It was showing multiple connections………….
To check the PID(Process ID ) for all the sessions which are using the port 9876
#lsof -i TCP:9876
finally you could use the almighty command “kill -9 PID” …. boom everything became normal.
Entry filed under: Linux.
1.
Darrell Bunnell | August 18, 2020 at 1:18 pm
Thanks for sharing your thoughts on linux kernel. Regards