1844562 Members
2944 Online
110233 Solutions
New Discussion

Re: System Process

 
hanyyu1
Advisor

System Process

In my server , there are some application are started with a server port , but sometimes , this port may be locked by other application so can't use it , if I want to release the port , what can I do ? ( I check with netstat, the port is active but seems locked ) thx
3 REPLIES 3
RAC_1
Honored Contributor

Re: System Process

You will have to stop process that is using the port. To check what process is using it, you can use netstat (netstat -an) and lsof. (lsof is tool to list open files. you can get it here-http://hpux.connect.org.uk)
lsof -i tcp:80
lsof -i udp:53

You also can start you apps through inetd.conf and start it at boot time. This way you can grab the port you want. Check /etc/services and /etc/inetd.conf files.
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: System Process

You can use lsof to find out the processes which are bound to that port. You can download from http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.75/

# lsof -i

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: System Process

You've to stop the process which is using that specific port. You can find the activity usage with netstat not the process number. To find the process use the lsof tool and kill them.

-Muthu
Easy to suggest when don't know about the problem!