- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to check which process is using a particul...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2006 01:08 PM
тАО12-17-2006 01:08 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2006 01:31 PM
тАО12-17-2006 01:31 PM
Re: how to check which process is using a particular port# ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2006 02:05 PM
тАО12-17-2006 02:05 PM
Solutionlsof|grep port_name(as show in /etc/services file) or just grep the port number
lsof |grep port_num
this will give you the application and the PID using that port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2006 04:25 PM
тАО12-17-2006 04:25 PM
Re: how to check which process is using a particular port# ?
There exists the lsof utility which is available at:
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/
E.g. if you are getting a message that the port xx is in use. You then run netstat -a | grep
You can determine which process by running: lsof -i TCP:
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2006 07:24 PM
тАО12-17-2006 07:24 PM
Re: how to check which process is using a particular port# ?
You can confirm whether that particular port is opened or not by netstat -na.
then, you need to run "lsof" command to find the process number of the service that is using the port.
Then kill it using kill -9 command.
Note:
If you dont have lsof utility installed on your machine. Download it from;
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/
HTH,
Prabu.S