[CentOS] Killing a Service

Cliff Nadler cnadler at gmail.com
Mon Oct 15 09:59:47 EDT 2012


On Mon, Oct 15, 2012 at 8:53 AM, John Reddy <linuxpencil at hotmail.com> wrote:

>
> 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
>

Try "lsof -i tcp:143" or "netstat -antp | grep 143"

Cliff


More information about the CentOS mailing list