Re: How to check for free ports on Linux Box

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 9/20/06, Bruno Wolff III <bruno@xxxxxxxx> wrote:
On Wed, Sep 20, 2006 at 15:50:38 +0530,
Kaushal Shriyan <kaushalshriyan@xxxxxxxxx > wrote:
>
> I need my apache web server to listen to a particular port, On my box
> there are 100 of applications which uses port to run
>
> My Query is how do i check for FREE PORTS on my box, is there any
> utility where i can find FREE Ports and use it for my application(Apache Web
> Server)

This doesn't make much sense. If you need apache to listen on a particular
port then it needs to listen on that port and there isn't any reason to
be checking other ports.
What you might want to do is see if anything else on the system is using
that port. Looking at /etc/services is a quick way to look for potential
conflicts. It will tell which ports are typically used by which services.
You can also run netstat and look for sockets in a LISTEN state to see which
ones are actually being used on your system at a given time.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

The following will show you what ports are currently in use...
 
netstat -a
 
You probably want to grep the output for the port you are interested in. If the port is not listed, it is not in use.

--
Rob Anderson
riznob@xxxxxxxxx
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux