[99568] in RedHat Linux List
unbinding a port?
daemon@ATHENA.MIT.EDU (Justin Kuntz)
Sun Nov 15 18:54:01 1998
From: "Justin Kuntz" <jkuntz@prominic.com>
To: redhat-list@redhat.com
Date: Sun, 15 Nov 1998 17:55:05 -0600
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
I am trying to write a Remote Method Invocation (RMI) program using Linux
as the Java server. To do this, one binds a TCP port using the rmiregistry
program that is included with the JDK (v1.1.7 from blackdown.org). Anyway,
I seem to have killed by rmiregistry prematurely, and now the port cannot
be reused.
In other words, even though I check that no more rmiregistry instances are
running in the system with "ps ax | grep rmi", when I re-execute
rmiregistry I get an error like: "cannot bind to TCP port 1099 - port in
use".
This is not just a problem I have had with rmiregistry. I've also seen
Apache HTTPD do it, and the only way I know how to fix the problem is by
rebooting Linux (RHL v5.1). I am sure this is more evidence of my lack of
understanding as a Linux user than a fault with the OS.
Can someone please tell me how to force a port unbind WITHOUT restarting
the server? IE: "force Linux to unbind port 1099 so that it can be
reused".
Thanks,
Justin
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.