old boy Education the third class after the actual combat test exercises: Please count the old boy teacher's blog http://oldboy.blog.51cto.com/ The amount of PV that is accessed by all users of the blog per hour (more than 5 hours of statistical sample).
Requirements: The old boy 20-21 students must answer questions (make sure to do their own, the ability to improve), the other period is optional. Also welcome the Linux beginner netizens to participate in the solution, master please bypass.
Exam question tip:
1, do not train of thought, can VIP group in the Group of Mentors guide the idea, or oneself suppress out.
2, PV (traffic): That is, Page view, that is, the amount of pageviews or clicks, the user every full load of a page is calculated a PV
3, Curl command Crawl Web content method and parameter description
Curl--retry--retry-delay--retry-max-time http://oldboy.blog.51cto.com/-o oldboy_html
Note:--retry indicates the number of retries,--retry-delay represents the time interval (in seconds) between two retries, and--retry-max-time indicates that only one retry is allowed in this maximum time (typically the same as--retry-delay)
4, wget command Crawl Web content method and parameter description
Wget-t 10-w 60-t-http://oldboy.blog.51cto.com/-o OLDBOY_HTML2
Note:-T (--tries) indicates the number of retries, and-W indicates the time interval (in seconds) between two retries, and-T indicates the connection time-out, and if the connection is unsuccessful, continue to try the next connection
Highlights: The main topic of training Students enterprise environment comprehensive problem solving ability, involving knowledge points have PV knowledge, timing Tasks, daemons, wget, curl, sed, awk, grep and many other commands combined application capabilities.
You can comment on the answer! Who is the quickest and easiest to use.
This article is from the "Old boy Linux ops" blog, please be sure to keep this source http://oldboy.blog.51cto.com/2561410/1605983
Enterprise actual Combat Exam Question: Count the PV number of a website per hour