部署awstats分析系统

部署awstats分析系统


[root@crushlinux1 ~]# unzip awstats-7.0.zip

[root@crushlinux1 ~]# mv awstats-7.0 /usr/local/awstats

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

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

/usr/local/httpd/conf/httpd.conf

y

y

www.crushlinux.com

回车

回车

回车


[root@crushlinux1 tools]# vi /etc/awstats/awstats.www.crushlinux.com.conf

51 LogFile="/usr/local/httpd/logs/access.log"

203 DirData="/var/lib/awstats"

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

[root@crushlinux1 tools]# /usr/local/awstats/tools/awstats_updateall.pl now


[root@crushlinux1 tools]# crontab -e

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

[root@crushlinux1 tools]# /etc/init.d/crond restart

[root@crushlinux1 tools]# chkconfig --level 35 crond on


浏览器:http://192.168.200.101/awstats/awstats.pl?config=www.crushlinux.com


[root@crushlinux1 tools]# vi /usr/local/httpd/htdocs/awb.html

<html>

<head>

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

url=httpd://www.crushlinux.com/awstats/awstats.pl?config=www.crushlinux.com">

</head>

<body></body>

</html>

[root@crushlinux1 tools]# /etc/init.d/httpd stop

[root@crushlinux1 tools]# /etc/init.d/httpd start

浏览器:http://192.168.200.101/awb.html


本文出自 “Crushlinux” 博客,谢绝转载!

你可能感兴趣的:(部署awstats分析系统)