[CentOS] Killing a Service

John Reddy linuxpencil at hotmail.com
Mon Oct 15 09:53:07 EDT 2012


Hi;
I get this:
]# /etc/init.d/dovecot start
Starting Dovecot Imap: Fatal: listen(143) failed: Address already in use
and this:
]# netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN
tcp        0      0 209.216.9.56:587            0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:587               0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:23                  0.0.0.0:*                   LISTEN
tcp        0      0 209.216.9.56:25             0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LISTEN
tcp        0      0 :::80                       :::*                        LISTEN
tcp        0      0 ::1:53                      :::*                        LISTEN
tcp        0      0 :::22                       :::*                        LISTEN
tcp        0      0 ::1:953                     :::*                        LISTEN
and this:
# /usr/sbin/lsof -i|grep 143
returns *nothing*. How do I figure out which program is using tcp to listen on port 143?
TIA,
John
 		 	   		  


More information about the CentOS mailing list