Vijayan
Vijayan Thanks for stopping by guys! I'm Vijayan and Techpulse is my beloved brainchild. Currently working as a PHP developer in a digital marketing start-up, I'm overly passionate about not just learning new things but also putting those into practice. I swear by a quote I once came across... 'What separates successful people from unsuccessful people is the former's ability to execute'. Feel free to reach out to me if you have any questions, suggestions or feedback. Hoping to see more of you here!

How to check the number of protocol connections made in a server


How to check the number of protocol connections made in a server

Here is a simple tip to check the number of protocol connections made by HTTP or MySQL. We know port 80 is used by the HTTP server and port 3306 is used by the MySQL server, by default. So here is the command to check the number of connections:

1
netstat -an | grep :80 | wc -l

The above command is for the HTTP server. Similarly, type 3306 instead of 80 to know the connection made for the MySQL server. To know the IP addresses that have made requests to port 80 of your server, run the following command:

1
netstat -an | grep :80

comments powered by Disqus