FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 10-15-2012, 01:53 PM
John Reddy
 
Default 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
 
Old 10-15-2012, 01:59 PM
Cliff Nadler
 
Default 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
 
Old 10-15-2012, 02:09 PM
John Reddy
 
Default 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
 

Thread Tools




All times are GMT. The time now is 07:06 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org