How to use Awstats to count Web site data deployed in Tomcat

Source: Internet
Author: User
Tags count tomcat linux

Due to the needs of the project, so these days on the use of Awstats to do some research, so the experience to share this time to everyone, I hope to give you a hint of help, there are omissions in the place, begged carefully, thank you.

First of all, explain the use and characteristics of Awstats, Awstats is an open source based on the Perl Web site Statistics tool.

It can be counted on the site's main information:

First, the number of visits, visits, page views, clicks, data flow, etc.

Second, accurate to the monthly, daily, hourly data

Third, visitor country

Four, the visitor IP

V. Statistics of Robots/spiders

Vi. duration of Visitors

Vii. statistical information for different files type

Viii. Statistics of Pages-url

Ix. Visitor Operating System browser and other information

X. Other information (search keywords, etc.)

To get to the point, awstats the way to use configuration. The environment here is Linux (Red Hat) and TOMCAT7

Download AWStats http://sourceforge.net/projects/awstats/files/AWStats/7.3/awstats-7.3.tar.gz/download

Put files in a random directory in Linux for example:/opt

Extract Files Tar–zxvf awstats-7.3.tar.gz

Locate the Tomcat directory, modify the Conf/web.xml configuration file, and cancel the comments for the CGI servlet and mapping

<servlet>
    
 <servlet-name>cgi</servlet-name>
    
 <servlet-class> org.apache.catalina.servlets.cgiservlet</servlet-class>
    
 <init-param>
    
 <param-name> debug</param-name>
    
 <param-value>0</param-value>
    
 </init-param>
    
 < init-param>
    
 <param-name>cgiPathPrefix</param-name>
    
 <param-value>web-inf/cgi</ param-value>
    
 </init-param>
    
 <init-param>
    
 <param-name>passshellenvironment </param-name>
    
 <param-value>true</param-value>
    
 </init-param>
    
 < load-on-startup>5</load-on-startup>
    
</servlet>
    
     
    
<servlet-mapping>
    
 < servlet-name>cgi</servlet-name>
    
 <url-pattern>/cgi-bin/*</url-pattern>
    
</ Servlet-mapping>

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/

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.