首页 > 学技术 > 技术网文 > Mail服务器 > 正文

[精华] 自己翻译的Isoqlog 2.2.x安装说明


来源 chinaunix.net 酷勤网整理

敬请指正

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:58) 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



 wd 回复于:2004-12-19 21:55:16

不是很通顺,呵呵.


 wd 回复于:2004-12-19 21:59:49

isoqlog 3.x谁安装成功了?
需要php4.3.x以上,我安装好了似乎不读取log文件 的内容.


 李暮楚 回复于:2004-12-20 08:52:22

我倒,都第三版了,主页在哪里?


 wd 回复于:2004-12-20 10:49:55

qss.sf.net


 李暮楚 回复于:2004-12-22 00:07:22

这个不是qss么?难道isoqlog改名了》》


 wd 回复于:2004-12-22 14:10:38

晕。。。我错了


 我菜我怕谁 回复于:2004-12-22 15:08:30

呵呵,开始发表翻译了。有进步!


 李暮楚 回复于:2004-12-22 19:13:58

倒,我虽然把这个翻译了,但是安装还是用的是xuki的,请大家把我没翻译好的修正一下好么???


 firer2000 回复于:2004-12-23 09:16:12

cp -pr ./htmltemp/images ./htmltemp/library isoqlogoutputdir/ 

这句话不太明白是干什么的,isoqlogoutputdir到底是什么目录啊?


 李暮楚 回复于:2004-12-23 10:30:37

http://www.xuki.org/qmail.html

cp -pr ./htmltemp/images ./htmltemp/library /var/www/html/isoqlog 

我的apache是源码安装的,所以是cp -pr ./htmltemp/images ./htmltemp/library /usr/local/apachehtdocs/isoqlog 这个目录其实就是生成的日志文件存放的路径.


 firer2000 回复于:2004-12-23 10:33:55

比如我的apache的documentroot是/var/www/mail/ 那么我就应该放到/var/www/mail下面吗?


 李暮楚 回复于:2004-12-23 14:33:56

应该是/var/www/mail/xxx  目录,这个目录看自己怎么方便怎么定.关键是你要是放到主目录下了,以后当web服务器的话不太方便,还有,开了web服务的话,以后还要对这个目录的内容限制访问(暂时不会做:().

其实这个输出目录的路径到底在哪里定义的,我也不大清楚,看xuki的安装文档,我感觉是在isoqlog.conf里面最后定义的.


 moumoulrc 回复于:2004-12-23 16:39:45

不管输出到哪里,一点,要保证你的apache能访问就OK了!
还有如果不是用的Qmail的标准的安装,也就是说log是记录再maillog里面的话,必须要让maillog以天为单位进行更新,不然的话结果是不准确的!
 :em06: ,至少我的是这样的!


 海鹰 回复于:2005-11-08 16:22:41

11111111111111111111









原文链接:http://bbs.chinaunix.net/viewthread.php?tid=469335
转载请注明作者名及原文出处



收藏本页到: