文章编号:11310时间:2024-09-30人气:
AWStats 是一款免费、开源的网站分析工具,旨在提供有关网站流量、访客行为和内容性能的深入见解。它是一款功能强大的工具箱,可以帮助内容营销人员了解其目标受众,优化其策略并推动业务成果。
AWStats 提供了一系列强大的特性,包括:
AWStats 的见解可用于改善内容营销的各个方面:
使用 AWStats 有许多优点:
AWStats 是一个功能强大的网站分析工具箱,可以为内容营销提供动力。它提供了有关网站流量、访客行为和内容性能的深入见解。通过利用 AWStats 的特性,内容营销人员可以改善其策略、优化其内容并推动业务成果。无论您是经验丰富的营销人员还是刚刚开始了解网站分析,AWStats 都是一个必不可少的工具,可以帮助您实现目标。
AWStats是在Sourceforge上发展很快的一个基于Perl的WEB日志分析工具。
目前主流的日志分析工具awstats、webalizer、glTail、piwik主要都是针对apache、lighthttp这些老牌的http应用的。 而对于新秀们如nginx的支持的相对较少,今天介绍的这个日志分析工具就支持nginx。 除此之外,因为goaccess因为不及于html页面进行的访问,而是在X windows或text mode下实时查看访客详情,所以其实时性和处理能力都比较强,其具体特点如下: 统计概况,流量消耗等访客排名动态Web请求 静态web请求,如图片、样式表、脚本等。 来路域名404 错误操作系统 浏览器和搜索引擎主机、DNS和IP地址 HTTP 响应代码 引荐网站 键盘布局自定义显示 支持超大日志(分析速度很快)支持的日志格式目前,这款软件支持Common Log Format (CLF) 和 Combined Log Format(XLF/ELF) 格式的日志。 分析传统的apache格式日志当然毫无问题。 同时,只要将nginx的日志格式定义为apache格式,对它的分析也不在话下(目前,redhat提供的nginx软件包默认日志格式和apache基本一致)。 GoAccess安装其功能依赖glib2、GeoIP、ncurses 三个库文件,在Debian或Ubuntu可以直接通过apt-get来下载安装软件。 自动解决软件的依赖问题。 Redhat或CentOS本身不包含GeoIP包,可以通过第三方源rpmforge来解决依赖关系。 具体rpmforge的使用,可以参看我的另一篇日志——CentOS官方推荐的RPMforge软件仓库安装方法。 安装完第三方源rpmforge后,就可以通过yum解决goaccess所需的依赖关系包了。 yum install glib2 glib2-devel GeoIP-develncurses-develwgetzxvf goaccess-0.4.2#启动ip归属地查询、和utf8编码格式支持./configure –enalbe-geoip –enable-utf8make && make install
今天安装了awstats(AWStats是在Sourceforge上发展很快的一个基于Perl的WEB日志分析工具。 ),好好折腾了一把,终于搞完了,参考了不少资料,将主要步骤和遇到的问题分享一下。
1.在home下建一个目录awstats,cd /home/awstats
下载awstats最新版本7.0
3.安装
复制代码
代码如下:
[root@JMAppSer tools]# perl awstats_
----- AWStats awstats_configure 1.0 (build 1.9) (c) Laurent Destailleur -----
This tool will help you to configure AWStats to analyze statistics for
one web server. You can try to use it to let it do all that is possible
in AWStats setup, however following The step by step manual setup
documentation (docs/) is often a better idea. Above all if:
- You are not an administrator user,
- You want to analyze downloaded log files without web server,
- You want to analyze mail or ftp log files instead of web log files,
- You need to analyze load balanced servers log files,
- You want to understand all possible ways to use AWStats...
Read the AWStats documentation (docs/).
----- Running OS detected: Linux, BSD or Unix
----- Check for web server install
Found Web server Apache config file /usr/local/apache/conf/
----- Check and complete web server config file /usr/local/apache/conf/
Add Alias /awstatsclasses /usr/local/awstats/wwwroot/classes/
Add Alias /awstatsCSS /usr/local/awstats/wwwroot/css/
Add Alias /awstatsicons /usr/local/awstats/wwwroot/icon/
Add ScriptAlias /awstats/ /usr/local/awstats/wwwroot/cgi-bin/
Add Directory directive
AWStats directives added to Apache config file.
----- Update model config file /usr/local/awstats/wwwroot/cgi-bin/
File updated.
----- Need to create a new config file ?
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ? y
----- Define config file name to create
What is the name of your web site or profile analysis ?
Example: demo
Your web site, virtual server or profile name:
----- Define config file path
In which directory do you plan to store your config file(s) ?
Default: /etc/awstats
Directory path to store config file(s) (Enter for default):
/usr/local/awstats/config
----- Create config file /usr/local/awstats/config/
Config file /usr/local/awstats/config/ created.
----- Restart Web server with /sbin/service httpd restart
Usage: /etc/init.d/httpd [-D name] [-d directory] [-f file]
[-C directive] [-c directive]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
-D name : define a name for use in IfDefine name directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C directive : process directive before reading config files
-c directive : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t : run syntax check for config files
----- Add update process inside a scheduler
Sorry, does not support automatic add to cron yet.
You can do it manually by adding the following command to your cron:
/usr/local/awstats/wwwroot/cgi-bin/ -update -config=
Or if you have several config files and prefer having only one command:
/usr/local/awstats/tools/awstats_ now
Press ENTER to continue...
A SIMPLE config file has been created: /usr/local/awstats/config/
You should have a look inside to check and change manually main parameters.
You can then manually update your statistics for with command:
perl -update -config=
You can also read your statistics for with URL:
Press ENTER to finish...
[root@JMAppSer tools]# cp /usr/loca/awstats/wwwroot/icon /usr/local/apache/htdocs/awstatsicons -rf
cp: 无法 stat “/usr/loca/awstats/wwwroot/icon”: 没有那个文件或目录
[root@JMAppSer tools]#
[root@JMAppSer tools]#
[root@JMAppSer tools]# ls
awstats_ awstats_ geoip_ nginx webmin
awstats_ awstats_ httpd_conf xslt
[root@JMAppSer tools]# cd ..
[root@JMAppSer awstats]# ls
awstats-7.0 awstats-7.1 config docs tools wwwroot
[root@JMAppSer awstats]# ll
总计 1508
drwxr-xr-x 5 1000 1000 4096 2010-12-06 awstats-7.0
drwxr-xr-x 5 root root 4096 11-22 17:52 awstats-7.1
-rw-r--r-- 1 root root 11-22 18:02
drwxr-xr-x 2 root root 4096 11-25 10:21 config
drwxr-xr-x 4 root root 4096 11-22 18:04 docs
-rw-r--r-- 1 root root 6787 11-22 18:04
drwxr-xr-x 5 root root 4096 11-22 18:04 tools
drwxr-xr-x 7 root root 4096 11-22 18:04 wwwroot
[root@JMAppSer awstats]# cd wwwroot/
[root@JMAppSer wwwroot]# ls
cgi-bin classes css icon js
[root@JMAppSer wwwroot]# cp icon/ /usr/local/jiemai/apache-blogs/htdocs/awstatsicons -rf
[root@JMAppSer wwwroot]#
[root@JMAppSer wwwroot]#
[root@JMAppSer wwwroot]# pwd
/usr/local/awstats/wwwroot
[root@JMAppSer wwwroot]# cd ..
[root@JMAppSer awstats]# ls
awstats-7.0 awstats-7.1 config docs tools wwwroot
[root@JMAppSer awstats]# ls
awstats-7.0 awstats-7.1 config docs tools wwwroot
[root@JMAppSer awstats]# ll
总计 1508
drwxr-xr-x 5 1000 1000 4096 2010-12-06 awstats-7.0
drwxr-xr-x 5 root root 4096 11-22 17:52 awstats-7.1
-rw-r--r-- 1 root root 11-22 18:02
drwxr-xr-x 2 root root 4096 11-25 10:21 config
drwxr-xr-x 4 root root 4096 11-22 18:04 docs
-rw-r--r-- 1 root root 6787 11-22 18:04
drwxr-xr-x 5 root root 4096 11-22 18:04 tools
drwxr-xr-x 7 root root 4096 11-22 18:04 wwwroot
[root@JMAppSer awstats]# cd config/
[root@JMAppSer config]# ls
[root@JMAppSer config]# vi
# AWSTATS CONFIGURE FILE 7.0
# Copy this file into and edit this new config file
# to setup AWStats (See documentation in docs/ directory).
# The config file must be in /etc/awstats, /usr/local/etc/awstats or /etc (for
# Unix/Linux) or same directory than (Windows, Mac, Unix/Linux...)
# To include an environment variable in any parameter (AWStats will replace
# it with its value when reading it), follow the example:
# Parameter=__ENVNAME__
# Note that environment variable AWSTATS_CURRENT_CONFIG is always defined with
# the config value in an AWStats running session and can be used like others.
# $Revision: 1.353 $ - $Author: eldy $ - $Date: 2012/02/15 14:19:22 $
# MAIN SETUP SECTION (Required to make AWStats work)
# LogFile contains the web, ftp or mail server log file to analyze.
# Possible values: A full path, or a relative path fROM directory.
# Example: /var/log/apache/
# Example: ../logs/
# You can also use tags in this filename if you need a dynamic file name
# depending on date or time (Replacement is made by AWStats at the beginning
# of its execution). This is available tags :
# %YYYY-n is replaced with 4 digits year we were n hours ago
# %YY-n is replaced with 2 digits year we were n hours ago
# %MM-n is replaced with 2 digits month we were n hours ago
# %MO-n is replaced with 3 letters month we were n hours ago
# %DD-n is replaced with day we were n hours ago
# %HH-n is replaced with hour we were n hours ago
# %NS-n is replaced with number of seconds at 00:00 since 1970
# %WM-n is replaced with the week number in month (1-5)
# %Wm-n is replaced with the week number in month (0-4)
# %WY-n is replaced with the week number in year (01-52)
# %Wy-n is replaced with the week number in year (00-51)
# %DW-n is replaced with the day number in week (1-7, 1=sunday)
# use n=24 if you need (1-7, 1=monday)
# %Dw-n is replaced with the day number in week (0-6, 0=sunday)
# use n=24 if you need (0-6, 0=monday)
# Use 0 for n if you need current year, month, day, hour...
# Example: /var/log/access_log.%YYYY-0%MM-0%
# Example: C:/WINNT/system32/LogFiles/W3SVC1/ex%YY-24%MM-24%
# You can also use a pipe if log file come from a pipe :
# Example: gzip -d /var/log/apache/ |
# If there are several log files from load balancing servers :
# Example: /pathtotools/ * |
#LogFile=/var/log/httpd/
LogFile=/usr/local/jiemai/apache-blogs/logs/access_logs
# Note: Result of DNS Lookup can be used to build the Country report. However
# it is highly recommanded to enable the plugin geoip or geoipfree to
# have an accurate Country report with no need of DNS Lookup.
# Possible values:
# 0 - No DNS Lookup
# 1 - DNS Lookup is fully enabled
# 2 - DNS Lookup is made only from static DNS Cache file (if it exists)
# Default: 2
DNSLookup=2
# When AWStats updates its statistics, it stores results of its analysis in
# files (AWStats
# Relative or absolute web URL of your awstats cgi-bin directory.
# This parameter is used only when AWStats is run from command line
# with -output option (to generate links in HTML reported page).
# Example: /awstats
# Default: /cgi-bin (means is in /yourwwwroot/cgi-bin)
DirCgi=/usr/local/awstats/wwwroot/cgi-bin
/AllowToUpdateStatsFromBrowser
# When this parameter is set to 1, AWStats adds a button on report page to
# allow to update statistics from a web browser. Warning, when update is
# made from a browser, AWStats is run as a CGI by the web server user defined
# in your web server (user nobody by default with Apache, IUSR_XXX with
# IIS), so the DirData directory and all already existing history files
# awstatsMMYYYY[] must be writable by this user. Change permissions if
# necessary to Read/Write (and Modify for Windows NTFS file systems).
# Warning: Update process can be long so you might experience time out
# browser errors if you dont launch AWStats frequently enough.
# When set to 0, update is only made when AWStats is run from the command
# line interface (or a task scheduler).
# Possible values: 0 or 1
# Default: 0
AllowToUpdateStatsFromBrowser=1
# AWStats saves and sorts its target=_blank> 1557L, C written
[root@JMAppSer config]# chown -R root:root /usr/local/awstats
[root@JMAppSer config]# chmod -R 755 /usr/local/awstats
[root@JMAppSer config]# mkdir /usr/local/awstats/data
[root@JMAppSer config]# chown /usr/local/awstats/data
[root@JMAppSer config]# chmod 777
DirData=/usr/local/awstats/data
DirCgi=/usr/local/awstats/wwwroot/cgi-bin
AllowToUpdateStatsFromBrowser=1
6.设置权限
chown -R root:root /usr/local/awstats
chmod -R 755 /usr/local/awstats
mkdir /usr/local/awstats/data
chown /usr/local/awstats/data
chmod 777 data
chmod 755 /usr/local/awstats/wwwroot/cgi-bin/*
7.生成分析日志与静态查看界面
cd /usr/local/awstats/wwwroot/cgi-bin
perl -config=上面域名 -update -lang=cn
perl -config=上面域名 -output -staticlinks -lang=cnawstats.上面
8.测试 http:// 上面的域名/awstats/?config=上面的域名
遇到的问题:
-config=上面域名 -update -lang=cn提示出错,或在测试时提示出错。LogFormat不正确:
原因:access_logs格式不正确,删除access_logs,重启APACHE。搞定
2.测试时看图片显示不了。
原因:/etc/awstats/awstats.上面输入的中的DirIcons配置不正确,这个目录一定要从/usr/local/apache/htdocs目录开始算,相对目录,要确保配置的目录可能过http访问到
3.点击测试页面的“立即更新”时,提示无法存储
原因:/usr/local/awstats/data的权限不正确,需要使用nobody权限,赋777.
使用网站分析工具,使用日志文件,使用反向代理服务器。 1、使用网站分析工具:许多网站提供分析工具,帮助管理员分析访客的流量、来源、地理位置、浏览器类型等信息。 常用的网站分析工具包括GoogleAnalytics、网络统计等。 2、使用日志文件:网站服务器通常会记录访客的信息,例如IP地址、访问时间、访问页面等。 管理员可以使用日志分析工具(例如AWStats、Webalizer)来分析日志文件并查看访客信息。 3、使用反向代理服务器:如果使用了反向代理服务器,例如Cloudflare、CDN等,那么可以通过反向代理服务器的管理界面查看访客信息,例如IP地址、访问时间、访问来源等。
内容声明:
1、本站收录的内容来源于大数据收集,版权归原网站所有!
2、本站收录的内容若侵害到您的利益,请联系我们进行删除处理!
3、本站不接受违法信息,如您发现违法内容,请联系我们进行举报处理!
4、本文地址:http://www.jujiwang.com/article/8c3719b3fc77ff510b89.html,复制请保留版权链接!
标准化回归系数的取值范围在测量模型中,标准化回归系数是一个重要的指标,它表示外生变量与内生变量之间的相关关系,标准化回归系数的取值范围为[,1,1],正相关,当标准化回归系数大于0时,表示外生变量和内生变量正相关,这意味着外生变量的增加会导致内生变量的增加,负相关,当标准化回归系数小于0时,表示外生变量和内生变量负相关,这意味着外生变...。
最新资讯 2024-09-28 02:18:33
Android系统签名在确保Android设备的安全和完整性方面发挥着至关重要的作用,在某些情况下,您可能会遇到系统签名错误,从而导致应用程序无法安装或设备出现其他问题,常见签名问题应用程序无法安装,您可能会收到,无法安装应用程序,或,系统无法安装应用程序,之类的错误消息,设备启动失败,您的设备可能会卡在启动屏幕或出现,无法启动设备,...。
最新资讯 2024-09-27 11:38:15
简介随着云计算技术的蓬勃发展,数据库管理系统也在不断演变,以满足现代企业的需求,Oracle云端数据库,OCC,作为业界领先的云数据库解决方案,凭借其卓越的性能、可扩展性和安全性,成为云计算时代不容忽视的选择,本文将对OCC进行全面解析,探讨其优势、适用场景和对企业IT架构的影响,优势高可用性OCC采用多可用区部署,确保数据库在任何故...。
技术教程 2024-09-26 21:12:51
在当今快节奏的商业环境中,高效便捷的支付方式至关重要,自动发卡平台作为一种新兴的支付解决方案,正以其强大的功能和显著的优势受到广泛关注,自动发卡平台是什么,自动发卡平台是一种基于技术的平台,允许企业通过API或WEB界面向客户即时生成并分发虚拟信用卡或借记卡,这些卡可用于在线或实体店交易,为客户提供灵活、便利的支付体验,自动发卡平台的...。
互联网资讯 2024-09-11 12:09:32
简介本教程旨在帮助初学者从零基础学习Java编程语言,并逐步进阶到专业开发人员,本教程涵盖了从基础语法到高级特性、实战项目的全方位内容,旨在打造出一名具有扎实理论基础和实践经验的Java开发人员,目标读者对Java编程感兴趣的初学者希望提高Java技术能力的开发者寻求转型成为Java专业人士的人员内容概要第1章,Java基础Java概...。
最新资讯 2024-09-11 11:41:45
引言随机函数是编程中的一个重要工具,它允许您生成不可预测的值,这在许多应用程序中很有用,例如模拟、游戏和数据科学,生成随机数的机制生成随机数有两种主要机制,伪随机数生成器,PRNG,这些算法使用确定性的、可重复的过程来生成看似随机的数,虽然生成的数字技术上不是随机的,但它们通常足够随机以用于大多数目的,真正的随机数生成器,TRNG,...。
互联网资讯 2024-09-08 15:08:26
简介在软件开发中,断言,assert,是一种重要的调试和验证技术,它允许程序员在运行时检查程序假设是否成立,断言可以帮助检测和隔离程序中的错误,从而提高程序的健壮性和可追溯性,本文将深入探讨Assert函数的工作原理,重点介绍其在C语言中的用法,还将讨论ASCII编码在断言中发挥的重要作用,Assert函数Assert函数是一种在C标...。
互联网资讯 2024-09-07 11:34:21
在当今快节奏的数字世界中,应用程序的性能至关重要,缓慢或无响应的应用程序会导致用户沮丧、客户流失和收入损失,PHP作为一种流行的Web开发语言,需要适当的优化才能确保应用程序的最佳性能,1.使用缓存缓存可以显着提高应用程序的速度,因为它允许存储经常访问的数据,从而避免了重复...。
最新资讯 2024-09-07 00:57:28
引言在JavaScript中,bind,函数是强大的工具,它允许您创建函数的新实例,同时还可以指定新函数调用的特定上下文,this关键字,这种功能在处理事件处理程序或创建具有特定上下文的新函数时特别有用,理解bind,函数bind,函数接受两个主要参数,函数对象,要创建新实例的函数,上下文对象,当调用新创建的函数时,this关...。
本站公告 2024-09-06 16:12:06
Java作为一种面向对象的编程语言,以其稳定、高性能、跨平台等特点被广泛应用于各种领域,如果你对Java编程感兴趣,但又苦于没有合适的平台和资源,那么今天,我将向你介绍一个零成本的官方平台,让你轻松开启你的Java技术之旅,官方平台介绍这个零成本的官方平台就是由Java之父詹姆斯·高斯林所创立的OpenJDK,OpenJDK是Java...。
最新资讯 2024-09-05 14:50:21
在河南安阳市的繁华都市中,坐落着历史悠久的风穴寺,这是一座有着一千多年历史的佛教寺庙,这座古老的寺庙却笼罩着一片阴森的恐怖气息,流传着许多关于被诅咒的隧道和徘徊灵魂的诡异传说,被诅咒的隧道风穴寺最为着名的恐怖之地莫过于寺庙后面的被诅咒的隧道,传说中,这条隧道是在寺庙建造时,为了供水而挖凿的,但由于工程失误,导致隧道坍塌,压死许多工人,...。
互联网资讯 2024-09-05 04:49:55
为人父母是一件充满喜悦和挑战的事情,选择宝宝的名字是其中一项最重要的决定,为了帮助父母找到完美的宝宝名字,我们推出了宝宝取名软件,为您提供无限的灵感和高级功能,高级功能性别筛选,根据孩子的性别缩小搜索范围,只显示适合宝宝的名字,含义搜索,使用我们的强大搜索功能,根据您喜欢的含义或象征意义来查找名字,发音指导,聆听您最喜欢名字的发音,确...。
互联网资讯 2024-06-22 17:07:21