English  France













If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.



Reply
  #1 (permalink)  
Old 10-07-2009, 07:13 PM
UnderHost's Avatar
UnderHost Management
 
Join Date: Jul 2008
Posts: 581
Default Howto: Check Apache Connections

You can use the following commands to check various connections to the server.
Connections to port 80:
Code:
netstat -alntp | grep :80
Number of connections to port 80:
Code:
netstat -alntp | grep :80 | wc -l
List the remote IPs connecting to your server:
Code:
netstat -alntp | awk ‘{print $5}’ | cut -d: -f1 | sort
List the uniq remote IPs and the number of connections from each IP:
Code:
netstat -alntp | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n
__________________
UnderHostProviding Affordable and Quality USA Hosting & Offshore cPanel Hosting
24/7 Rapid Support / 99.9% Uptime Guarantee / Shared / Reseller / VPS / Dedicated
Premium VPSUSA Cloud Virtual Private Servers - Dedicated and Scalable Resources - Parallels® Virtuozzo
Hong Kong - Singapore - USA - Canada - Netherlands - UK - Germany - Panama - Malaysia
Reply With Quote
underhost.us
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Loading...


All times are GMT -4. The time now is 01:39 AM.
Copyright © 2010 UnderHost Networks Ltd






Partners
Underhost Facebook  Underhost Twitter

Copyright © 2011 UnderHost Networks Ltd