Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   Killing a Service (http://www.linux-archive.org/centos/712445-killing-service.html)

John Reddy 10-15-2012 01:53 PM

Killing a Service
 
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

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Cliff Nadler 10-15-2012 01:59 PM

Killing a Service
 
On Mon, Oct 15, 2012 at 8:53 AM, John Reddy <linuxpencil@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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

John Reddy 10-15-2012 02:09 PM

Killing a Service
 
> Try "lsof -i tcp:143" or "netstat -antp | grep 143"

Yep. Thanks :)
John

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


All times are GMT. The time now is 12:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.