部署awstats分析系统
[root@crushlinux1~]#unzipawstats-7.0.zip
[root@crushlinux1~]#mvawstats-7.0/usr/local/awstats
[root@crushlinux1~]#cd/usr/local/awstats/tools/
[root@crushlinux1tools]#./awstats_configure.pl
/usr/local/httpd/conf/httpd.conf
y
y
www.crushlinux.com
回车
回车
回车
[root@crushlinux1tools]#vi/etc/awstats/awstats.www.crushlinux.com.conf
51LogFile="/usr/local/httpd/logs/access.log"
203DirData="/var/lib/awstats"
[root@crushlinux1tools]#mkdir/var/lib/awstats
[root@crushlinux1tools]#/usr/local/awstats/tools/awstats_updateall.plnow
[root@crushlinux1tools]#crontab-e
*/5****/usr/local/awstats/tools/awstats_updateall.plnow
[root@crushlinux1tools]#/etc/init.d/crondrestart
[root@crushlinux1tools]#chkconfig--level35crondon
浏览器:http://192.168.200.101/awstats/awstats.pl?config=www.crushlinux.com
[root@crushlinux1tools]#vi/usr/local/httpd/htdocs/awb.html
<html>
<head>
<metahttp-equiv=refreshcontent="0;
url=httpd://www.crushlinux.com/awstats/awstats.pl?config=www.crushlinux.com">
</head>
<body></body>
</html>
[root@crushlinux1tools]#/etc/init.d/httpdstop
[root@crushlinux1tools]#/etc/init.d/httpdstart
浏览器:http://192.168.200.101/awb.html
本文出自 “梦想的出发点” 博客,谢绝转载!