Enterprise actual Combat Exam Question: Count the PV number of a website per hour

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.