LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can I force a TCP port to close (https://www.linuxquestions.org/questions/linux-networking-3/can-i-force-a-tcp-port-to-close-360796/)

Ratclaws 09-06-2005 02:19 PM

[resolved] Can I force a TCP port to close
 
i have recently uninsalled openldap, and reinstalled it.

I noticed that I could not start slapd because it said it address already in use...
Code:

[root@box openldap]# netstat -a |grep ldap
tcp        0      0 *:ldap                      *:*                        LISTEN
tcp        0      0 *:ldaps                    *:*                        LISTEN


ldap is not running.... ps aux shows no sign of ldap or slapd.
neither does top..

why is this port still open, and can i close it without restarting...?

Matir 09-06-2005 02:24 PM

Add the -p flag to netstat to see what process is using that port.

Ratclaws 09-06-2005 02:36 PM

ha... Thank you very much

Turns out our mail server (CommuniGate) is doing ldap... i dont really trust it to do that. I'll be disabling this...


All times are GMT -5. The time now is 03:38 PM.