Tomcat7 开启CGI,并配置awstats日志监控
搭建环境 Apache Tomcat 7.x JDK 1.6+ Perl 5.2+ Ubuntu 1, 下载Tomcat 并解压到特定目录 2,修改<Tomcat_HOME>\conf\web.xml配置文件,取消cgi servlet和对应的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