HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   List of servers (http://www.howtoforge.com/forums/showthread.php?t=109)

thomilla 5th June 2005 17:51

List of servers
 
How can I see what servers are running on my system, and on which port?

joe 5th June 2005 19:27

You could either use nmap on yourself or use the netstat command.

deedee 7th June 2005 11:40

I'd run
Code:

netstat -tap
It will show a list with lines like this:

Code:

tcp        0      0 *:mysql                *:*                    LISTEN      17735/mysqld
where mysql is the port. If you want to know the number of the port, run

Code:

grep mysql /etc/services
It'll show

Code:

mysql          3306/tcp                        # MySQL
mysql          3306/udp                        # MySQL

so you know the MySQL port is 3306.


All times are GMT +2. The time now is 21:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.