[root@linux /]# cp webalizer-2.01-09-src.tgz /home/webalizer/ [root@linux /]# cd /home/webalizer/ [root@linux webalizer]# tar zxvf webalizer-2.01-09-src.tgz |
[root@linux webalizer]# rpm -qi gd Name : gd Relocations: /usr |
[root@linux webalizer]#./configure --with-language=chinese --with-gdlib=/usr/lib --with-gd=/usr/bin [root@linux webalizer]#make [root@linux webalizer]#mkdir /var/www/html/usage |
[root@linux webalizer]#ls CHANGES README.FIRST dns_resolv.h lang/ parser.c webalizer.LSM COPYING aclocal.m4 dns_resolv.o lang.h parser.h webalizer.c Copyright config.cache graphs.c linklist.c parser.o webalizer.h DNS.README config.log graphs.h linklist.h preserve.c webalizer.o INSTALL config.status* graphs.o linklist.o preserve.h webalizer.png Makefile configure* hashtab.c msfree.png preserve.o webalizer_lang.h@ Makefile.in configure.in hashtab.h output.c sample.conf webazolver@ Makefile.std country-codes.txt hashtab.o output.h webalizer* README dns_resolv.c install-sh* output.o webalizer.1 |
[root@linux webalizer]#cp webalizer /usr/bin/ [root@linux webalizer]#cd /etc [root@linux etc]#ls webalizer*webalizer.conf [root@linux etc]#cp webalizer.conf.sample webalizer.conf.ihao [root@linux etc]#vi webalizer.conf.ihao |
LogFile /var/log/httpd/access_log OutputDir /var/www/html/usage HostName www.ihao.orgIncremental yes PageType htm* PageType cgi PageType php HideURL *.gif HideURL *.GIF HideURL *.jpg HideURL *.JPG HideURL *.ra IgnoreURL /taskbar* |
<Directory "/var/www/html/usage"> Options None AllowOverride None Order deny,allow Allow from all </Directory> |
[root@linux webalizer]#service httpd restart Shutting down http: [ OK ] Starting httpd: [ OK ] |
[root@linux webalizer]#/usr/bin/webalizer -c /etc/webalizer.conf.ihao |
[root@linux webalizer]#/usr/bin/webalizer -c /etc/webalizer.conf.ihao Webalizer V2.01-09 (Linux 2.4.3-20mdk) Chinese 使用記錄檔 /var/log/httpd/access_log (clf) 產生輸出於 /var/www/html/usage 主機名稱是 'www.ihao.org 讀取歷史記錄 webalizer.hist Reading previous run data.. webalizer.current Saving current run data... [03/03/2002 18:21:06] 產生報表給 三月 2002 產生彙總報表 儲存歷史記錄資訊 120778 記錄 (119881 忽略) in 6.02 秒, 20062/sec |
[root@linux webalizer]#crontab -e0 */2 * * * /usr/bin/webalizer -c /etc/webalizer.conf.ihao |
歡迎光臨 ihao論壇 (https://ihao.org/dz5/) | Powered by Discuz! 6.0.0 |