Finding ports and services

Sjoerd Mullender sjoerd at acm.org
Wed Jul 13 16:22:19 UTC 2005


Tim Holmes wrote:
> I am trying to figure out how to tell if something is blocking or
> occupying the default MySQL port
> 
> I do not have telnet installed, so the trick of 
> 
> telnet srvfs-01:3306 will not work
> 
> I need to find out whats going on and blocking this port, as well, in a
> broader sense, I need to begin to develop some network troubleshooting
> tools for Linux,  If someone can point me to the appropriate references
> etc, I would be most grateful

Here are two ways (you want to be superuser (root) for this):

lsof -i tcp:3306
netstat -plan | grep -w 3306

So take a look at lsof and netstat.


-- 
Sjoerd Mullender
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 369 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050713/581d34e9/attachment-0001.sig>


More information about the fedora-list mailing list