Check used port – Linux

Sometimes you might find issues starting up your SAP services, with a error that the service is not able to bind to a particular port.

In the example below, I was not able to start the SMTP service from SMICM.


This mean, there could be another service that is already using this port.

Lets find out:

netstat -nepal | grep 25


Now we have the process ID. Lets see what is this process all about:

ps -ef | grep 6760


Postfix was using my service, which was not required.

Kill/Stop the service that is not required before starting your service again.

In my example:

# postfix stop 

Make sure that you disable the unwanted service from starting up next time when you reboot the server using chkconfig:

# chkconfig postfix off

Leave a Reply

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

You are commenting using your 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