readme.first
来自「c语言实现的web http报文分析」· FIRST 代码 · 共 193 行
FIRST
193 行
Upgrade information for the Webalizer Version 2.01If you are using incremental mode, the data format for Version 2.01is incompatable with previous versions, so you should remove your datafile (webalizer.current) and re-process from the beginning of themonth to recreate it. If you do not use incremental mode, thenV2.00 should be a drop in replacement for 1.3x-xx, with the possibleexception of the two changed command line switches, -g and -F. Inaddition, there has been a number of new configuration keywords andcommand line options added. Please see the CHANGES file for additionalinformation regarding what has changed between versions. You may alsowant to take a look at the DNS.README file for information on the newreverse DNS lookup capabilities.************ NOTICE! ************ Version 1.30 and higher are INCOMPATABLE with any andall previous versions of this program. File names have been changed,and file formats have been modified. If you are upgrading froma previous version, please read this ENTIRE DOCUMENT before youproceed, as it contains important information that you will need.Note: If you plan on re-processing all of your logs so they willcontain the new statistics, you can safely ignore the rest ofthis document (although you really should read it anyway...).QUICK UPGRADE INSTRUCTIONS:1) If you use incremental mode, read the section below, then delete your current incremental data file (webalizer.current).2) Modify your history file (webalizer.hist) as described below.3) Add any new configuration options that you want to your configuration file(s). (See sample.conf for examples)4) Rename existing files to use 4 digit year (see below).5) Re-process your logs from beginning of the month (minimum).INCREMENTAL PROCESSING CHANGEThe incremental file format has changed, therefore you MUSTREMOVE your current incremental file before running thisversion. Doing so will also force you to re-process all logsfrom the beginning of the month, so if you have a largesite, you may want to wait until the end/beginning of themonth to perform the upgrade.HISTORY FILE CHANGEThe history file format changed as well. In order to use yourexisting history file, you must manually edit it to add twoadditional numbers to the end of each line. These numbersrepresent the total 'pages' and 'visits' for that particularmonth. You can do this using any standard text editor.For example, if your existing history file looks like:3 1999 56614 24758 234 180875 5 314 1999 156711 90240 1529 931048 1 30You should change it to look like:3 1999 56614 24758 234 180875 5 31 0 04 1999 156711 90240 1529 931048 1 30 0 0Notice the extra two zeros ('0') at the end of each line. Therewill be _at most_ 12 lines for you to change. You could of courseput some fake values (or real ones if you have them) and theywill show up on the main index page. If you have access to aunix command prompt and sed, you could also simply type:cat webalizer.hist | sed "s/$/ 0 0/g" > webalizer.hist.tmpmv webalizer.hist.tmp webalizer.histFor those curious, the format of the history line is:Month# Year# Hits Files Sites KBytes Fdom Ldom Pages Visits(Fdom=First Ldom=Last day of month processed)Note: It may be possible to leave your existing history filein place, and the first run with the new version will convertit to the new format. It works on my linux system, it maynot work on yours... It depends on how your particular platformhandles the missing data. Probably better to not chance it ;)CONFIGURATION FILE CHANGESSeveral new configuration and command line options have beenadded. The default values for these should be suitable formost users, however you might want to at least define thePageType extensions for your particular system (default is touse '.htm*' and '.cgi' extensions). You should refer to theCHANGES file to see what has been changed/added. See the filesREADME and sample.conf for additional details.GENERATED FILE NAME CHANGESPrevious versions of the Webalizer created html and image filesusing a format that included the month and year as two digitstrings (ie: 0399). Even though the filenames themselves were_only_ for humans, the Y2K scare has people freaked out oversuch behaviour, and I'm tired of getting all the email about it :)As a result, any existing files need to be renamed to includethe extra two digits. The old format was MMYY, new format isYYYYMM (and now they will sort correctly in directory listings :)For example, change the file "usage_0599.html"to "usage_199905.html".Image files for previous months do not need to be changed unless youchange the links in the previous month HTML pages as well. Thecurrent month files will be automatically generated with the correctnames.Mike Glover submitted this little shell script that helps automate theupdating of files/filenames:------------------------ CUT HERE ------------------------#!/bin/sh## Mike Glover# mpg4@duluoz.net## fixalizer.sh -- automatically upgrade webalizer data filesSTART=`pwd`#for each domain...while [ "$1" ]; do DOM=$1 echo "Updating $DOM" cd $DOM # we don't use incremental mode, so don't worry about it # modify the history files cat webalizer.hist | sed "s/$/ 0 0/g" > tempfile mv tempfile webalizer.hist # don't worry about new configuration options # rename existing files to use 4 digit year. for ENT in *usage_*; do #fixes most names NEW=`echo $ENT | sed 's/\(^.*_\)\([0-9]\{2\}\)\([0-9]\{1,2\}\)/\119\3\2/g'` #pesky y2k names need repairs NEW2=`echo $NEW | sed 's/\(^.*_\)\(190\)\([0-9]\{2\}\)/\12000\3/g'` mv $ENT $NEW2 done # next iteration cd $START shiftdone------------------------ CUT HERE ------------------------------------------------------------------------------------------------------------------------------------------------------------------The remainder of this document contains the prior V1.22 upgrade info.This should only be of interest to those who are upgrading from olderversions of the software and need to see those changes as well.------------------------------------------------------------------------------------------------------------------------------------------Upgrade Information for Webalizer V1.21 and higherSome significant changes have occured between V1.20 and V1.21 ofthe Webalizer. Additional configuration keywords have been addedand incremental processing has been modified. Due to these changes,the following must be observed:Old incremental data files are no longer compatable with the newversion. Remove any existing incremental data files before runningthe new version. This version also adds the ability to define thename and location of the incremental data file. It will default tothe normal name and location (webalizer.current in the specifiedoutput directory), however can be changed to an alternate location.See "IncrementalName" and "HistoryName" configuration directives.Note: you may check existing data files by looking at the firstline of the file... if it doesn't start with "# Webalizer ", thenit is an old style file and needs to be removed.The configuration file has changed, however the only significantdifference is the definition of the HTMLHead keyword, which hasbeen changed in this version. If you were using the HTMLHeadkeyword in previous versions, change it to "HTMLBody", in orderto have it work as expected (as in previous versions). See theREADME file for additional information.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?