首页 > 其他 > 详细

Awstats服务

时间:2014-04-21 17:40:39      阅读:566      评论:0      收藏:0      [点我收藏+]

部署Awstats统计Http访问日志

1、 解压、安装

[root@localhost ~]# tar -zxf awstats-7.1.tar.gz

[root@localhost ~]# mv awstats-7.1 /usr/local/awstats

2、 为站点建立配置文件

[root@localhost ~]# cd /usr/local/awstats/tools

[root@localhost tools]# ./awstats_configure.pl

……

Config file path (‘none‘ to skip web server setup):

> /etc/http/conf/http.conf

- This file does not exists.

Config file path (‘none‘ to skip web server setup):

> /etc/httpd/conf/httpd.conf                

……

Do you want me to build a new AWStats config/profile

file (required if first install) [y/N] ? y

……

Your web site, virtual server or profile name:

> www.tarena.com

3、指定统计的目标日志文件

[root@localhost tools]# vim /etc/awstats/awstats.www.tarena.com.conf

……

51 LogFile="/var/log/httpd/access_log"

…….

[root@localhost tools]# mkdir /var/lib/awstats

4、将日志文件导入Awstats

[root@localhost tools]# ./awstats_updateall.pl now

[root@localhost tools]# crontab -e

*/5 * * * * /usr/local/awstats/tools/awstats_updateall.pl now

[root@localhost tools]# service crond restart

[root@localhost tools]# chkconfig crond on

[root@localhost tools]# cat /var/www/html/awstats.html

<html>

<><html>

<head><meta http-equiv=refresh content="0;  

url=http://www.tarena.com/awstats/awstats.pl?

config=www.tarena.com">

</head>

<body>

</body>

</html>

1、 验证

http://www.tarena.com/awstats.html


Awstats服务,布布扣,bubuko.com

Awstats服务

原文:http://changnan.blog.51cto.com/8825738/1398982

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!