- 论坛徽章:
- 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.
虽然必须至少在每天零点进行一次当日统计,你也可以每天多次运行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,强烈建议你轮回日志文件以保证数据的健康性。???
# 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.
----文件
解包时候,应该能看到如下文件和目录
Makefile ->;你应该知道这是干吗的
configure ->;为系统准备自定义安装文件
isoqlog.conf ->;配置文件。(用more isoqlog.conf看看里面的内容)
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变量。如果使用了别的参数,也要做相应修改。(是这个意思么?)
注意:重要:必须注意控制的你的日志文件大小。
如果使用的qmail使用multilog,你可以在qmail-send/log/run设置s参数,象这样
#!/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 |
|