Last active
December 21, 2015 08:59
-
-
Save yaph/6281767 to your computer and use it in GitHub Desktop.
monitor server connections
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# count port 80 connections | |
netstat -alpen | grep -c :80 | |
# watch connections, refresh every 5 seconds | |
sudo watch -n5 -d 'netstat -alpen | grep -c :' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment