- 論壇徽章:
- 0
|
敬請指正
Isoqlog 2.2.x INSTALL
Isoqlog 2.2.x安裝說明
- Installation
1. ./configure
If you would like to use default options just type 'configure'
To see more options type 'configure --help'
如果想默認使用,那么僅僅敲入configure即可。查看更多選項,請敲入configure --help
2. make
Compiling...
3. make install
Installing...
4. make clean
Removing objects files...
copy images and library directory that under htmltemp directory to isoqlog output directory
5. cp -pr ./htmltemp/images ./htmltemp/library isoqlogoutputdir/
將htmltemp下的images和library目錄(映象目錄和庫目錄)拷到isoqlogoutputdir下
6. You can run isoqlog more than once in a day, though you must run at least once before 00:00
(i.e. 23:5 to get current day's statistics.
雖然必須至少在每天零點進行一次當(dāng)日統(tǒng)計,你也可以每天多次運行isoqlog。
7. If you're using postfix, sendmail or qmail-syslog, it is strongly suggested you rotate
your log files to get the data healthier.
如果你正在運行postfix,sendmail或者qmail-syslog,強烈建議你輪回日志文件以保證數(shù)據(jù)的健康性。???
# crontab -e
58 * * * * /usr/local/bin/isoqlog 1>;/dev/null 2>;/dev/null
this will run isoqlog every hour at 58. minute
That's all
IMPORTANT NOTE: If you type make and get an error like:
Makefile line:XXX need an operator, you better use gmake, not make.
就這么多,重點:如果你在進行make時候,得到一個類似如下的錯誤:
Makefile line:XXX need an operator, 最好使用gmake,而不是make.
- Files
When you untar package, you should see following files and directories:
Makefile ->; You know what is this.
configure ->; Prepares your system for custom installations.
isoqlog.conf ->; Configuration file. (more isoqlog.conf)
isoqlog.domains ->; Domains
htmltemp ->; Contains HTML output templates. Edit them if you would like.
----文件
解包時候,應(yīng)該能看到如下文件和目錄
Makefile ->;你應(yīng)該知道這是干嗎的
configure ->;為系統(tǒng)準(zhǔn)備自定義安裝文件
isoqlog.conf ->;配置文件。(用more isoqlog.conf看看里面的內(nèi)容)
isoqlog.domains ->;域名(們)
htmltemp ->;包含HTML輸出模板。可以對其編輯。
- After installation
Don't forget! If you configure your system with 'configure --prefix=install_dir'
edit isoqlog.conf and change prefix variables. Also change others.
NOTE:
An important thing to note here is that; keep the size of your log file large.
if you're using qmail with multilog, you can set this in the qmail-send/log/run
file with the s (size) parameter like this: (all in one line)
#!/bin/sh
exec /usr/local/bin/setuidgid \
qmaill /usr/local/bin/multilog t s5000000 \
/var/log/qmail
if you're using syslog, change the rotate size.
------安裝完成后
切記:如果編譯時候,使用了configure --prefix=install_dir,來指定安裝目錄,到isoqlog.conf里去
修改isoqlog.conf改變prefix變量。如果使用了別的參數(shù),也要做相應(yīng)修改。(是這個意思么?)
注意:重要:必須注意控制的你的日志文件大小。
如果使用的qmail使用multilog,你可以在qmail-send/log/run設(shè)置s參數(shù),象這樣
#!/bin/sh
exec /usr/local/bin/setuidgid \
qmaill /usr/local/bin/multilog t s5000000 \
/var/log/qmail
如果正在使用syslog,改變輪回尺寸。
PROBLEMS
問題
If you have trouble with GNU style configuration/installation please try Makefile.std
cp Makefile.std Makefile
make
make install
如果使用GNU形式配置/安裝,請嘗試Makefile.std,
cp Makefile.std Makefile
make
make install |
|