Count the top 10 ip addresses for web access and 10 ip addresses for web Access
Cat access. log | awk '{print $0}' | sort | uniq-c | sort-nr | head-n 10
Jsp statistics of daily traffic by Ip Address
1. Create a table with the field id (number), ip (ip address), and time (the first access time of the day)
2. Obtain the IP address accessed by the user. Check whether the IP address exists on the current day in the database table. If the IP address does not exist, add it to the table. If the IP address exists, no other operations are performed.
3. Count the day's records
Which of the following is the best choice for websites with a daily access volume of IP?
It mainly refers to the number of simultaneous online users. If the number of simultaneous online users exceeds 40, it will lead to no access. The IP address is a little dangerous, resulting in a high probability of access failure. We recommend that you increase the number of connections.