- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to free a port?
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
Forums
Discussions
Discussions
Discussions
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
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
01-26-2004 05:53 AM
01-26-2004 05:53 AM
How to free a port?
lsof -i:443 gives
rng 1622 root 5u inet 0x5eb1cc80 0t0 TCP *:443 (LISTEN)
ps for rng process:
root 1622 0 0 Dec 10 ttyp1 0:00 rng
I can not kill that process nor can I reconfigure that module through kmadmin: "kmadmin: rng: Device busy". Beside reboot, is there any other ways?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 06:00 AM
01-26-2004 06:00 AM
Re: How to free a port?
Was it still listening on port 80?
If not it sounds like your web server is misconfigured i.e. it's not stopping https - the secure html port.
Are you running Apache Secure?
rng sounds like Random Number Generator - but I'm not sure why it would be listening on 443.
Are you running the kcweb product - the new web-based kernel admin product? If so you may need to stop it as well. But I think that runs on neither 80 nor 443 - but not positive.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 06:19 AM
01-26-2004 06:19 AM
Re: How to free a port?
Yes, I am running Apache Secure. It is running on both 80 and 443.
And no, I am not runnging kcweb product.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 06:25 AM
01-26-2004 06:25 AM
Re: How to free a port?
rng 1622 root 3u inet 0x5e8ac340 0t0 TCP web:http (LISTEN)
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 06:29 AM
01-26-2004 06:29 AM
Re: How to free a port?
Are you running:
/sbin/init.d/apache stop
then
/sbin/init.d/apache start
If not - how are you trying to restart the web server?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 06:40 AM
01-26-2004 06:40 AM
Re: How to free a port?
I am not starting apache under /sbin/init.d but similar to it under different directory. I used stop_httpd and start_httpd_secure.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 06:57 AM
01-26-2004 06:57 AM
Re: How to free a port?
If you have that script in /sbin/init.d I suggest you try it because it will stop Tomcat & the Web Admin products as well as vanilla Apache. Those may still be running & that's what may be still listening on those ports.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 07:06 AM
01-26-2004 07:06 AM
Re: How to free a port?
yes, I have stopped all of the web applications. But the ports are still in the LISTEN mode.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 07:10 AM
01-26-2004 07:10 AM
Re: How to free a port?
If it's there then comment it out & kill it. If a standard kill fails try several other signals before resorting to the -9
Something has to be starting it & possibly respawning it when you stop Apache.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 07:44 AM
01-26-2004 07:44 AM
Re: How to free a port?
There is no such line in inittab file. And I have try all the kill signal(including -9), it still did not kill the rng process.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 07:48 AM
01-26-2004 07:48 AM
Re: How to free a port?
What does ps -efl show the priority of that PID to be?
What's the PID's parent PID (PPID) - can you kill that - DON'T if it's 1.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 07:57 AM
01-26-2004 07:57 AM
Re: How to free a port?
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 08:05 AM
01-26-2004 08:05 AM
Re: How to free a port?
So that's why you can't kill it - it's not signalable. Signalable would be less than 128 & greater than 154.
So it's probably sleeping and I'm not sure what you can do to stop it short of a reboot.
Your best bet is to find what's starting rng & stop it. But I think it's kmadmin that has.
What does
kmadmin -S
return?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 08:45 AM
01-26-2004 08:45 AM
Re: How to free a port?
rng process was started after the Apache Secure start.
Here is the kmadmin -S:
Module Name rng
Module ID 2
Module Path /stand/dlkm/mod.d/rng
Status LOADED
Size 57344
Base Address 0x11b2000
BSS Size 0
BSS Base Address 0x0
Hold Count 1
Dependent Count 0
Unload Delay 0 seconds
Description rng - random number generator for the /dev/[u]random interface
Type WSIO
Block Major -1
Character Major 78
Flags b5
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 08:51 AM
01-26-2004 08:51 AM
Re: How to free a port?
stop_httpd_secure
Have you run this command yet?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 08:56 AM
01-26-2004 08:56 AM
Re: How to free a port?
I wonder if it is rng that listens at this port. I have checked up my workstation and it is not listening at this port.
Looks like it is your apache web server. To stop ssl part of apache, you would need to issue
apachectl -stop
I believe /sbin/init.d/apache does the same thing ofcourse. Make sure you don't have any httpd's running with -DSSL arguments.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2004 09:34 AM
01-26-2004 09:34 AM
Re: How to free a port?
Yes, I did run stop_httpd_secure, which is also apachectl -stop.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 02:22 PM
12-14-2004 02:22 PM
Re: How to free a port?
Below is the lsof on the unkillable rng process:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rng 738 root cwd DIR 64,0x3 8192 12490 / (/dev/vg00/lvol3)
rng 738 root 0u CHR 3,0x2 0t0 65 /dev/null
rng 738 root 1u CHR 3,0x2 0t0 65 /dev/null
rng 738 root 2u CHR 3,0x2 0t0 65 /dev/null
rng 738 root 3u FIFO 0x5c3df1c8 0t0 1831
rng 738 root 4u FIFO 0x5c3df4c8 0t0 305
rng 738 root 5w FIFO 0x5c3df4c8 0t0 305
rng 738 root 20u inet 0x5c64c1c0 0t0 UDP fileserv.divms.uiowa.edu:domain (Idle)
rng 738 root 21u inet 0x5c64c340 0t0 TCP fileserv.divms.uiowa.edu:domain (LISTEN)
rng 738 root 22u inet 0x5c64c4c0 0t0 UDP pcnfsnew.divms.uiowa.edu:domain (Idle)
rng 738 root 23u inet 0x5c64c640 0t0 TCP pcnfsnew.divms.uiowa.edu:domain (LISTEN)
rng 738 root 24u inet 0x5c64c7c0 0t0 UDP mail.divms.uiowa.edu:domain (Idle)
rng 738 root 25u inet 0x5c64c940 0t0 TCP mail.divms.uiowa.edu:domain (LISTEN)
rng 738 root 26u inet 0x5c64cac0 0t0 UDP serv01.divms.uiowa.edu:domain (Idle)
rng 738 root 27u inet 0x5c64cc40 0t0 TCP serv01.divms.uiowa.edu:domain (LISTEN)
rng 738 root 28u inet 0x5c64cdc0 0t0 UDP localhost:domain (Idle)
rng 738 root 29u inet 0x69844080 0t0 TCP localhost:domain (LISTEN)
rng 738 root 30u inet 0x69844200 0t0 UDP mserv01.divms.uiowa.edu:domain (Idle)
rng 738 root 31u inet 0x69844380 0t0 TCP mserv01.divms.uiowa.edu:domain (LISTEN)
rng 738 root 32u inet 0x5c64c040 0t0 UDP *:49152 (Idle)
rng 738 root 33u inet 0x69844500 0t0 TCP localhost:953 (LISTEN)
JJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 08:33 AM
12-15-2004 08:33 AM
Re: How to free a port?
Revision history
The version B.11.11.07 eliminates the dependency on the /etc/loadmods file. If this file does not exist or does not have the entry for KRNG11i, the /dev/random and /dev/urandom device files are removed at system reboot time to prevent unexpected side effects caused by accessing these device special files.
The version B.11.11.08 fixes the problem that the KRNG entoropy daemon process inherits the open file descriptors and current working directory from the calling process.
The version B.11.11.09 fixes the problem that the KRNG entoropy daemon process inherits the processor binding, process scheduling policy and priority from the calling process.
So, if you run into this problem, before you reboot your machine, install the 11.11.09 release and save yourself another reboot.
JJ