How to idenitfy a process ID using the TCP Port

October 23, 2011 at 1:57 pm Leave a 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.

Advertisements

Entry filed under: Linux.

Linux Guide Error – Login failed the user is not associated with the trusted SQL server coonection.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Trackback this post  |  Subscribe to the comments via RSS Feed


Archives

Categories

Follow Hope you like it.. on WordPress.com

Blog Stats

  • 23,586 hits

%d bloggers like this: