由 7dehao 在 05-07-2003 16:52 发表:
error_log太大了,没法看,怎么办?
/etc/httpd/logs/error_log文件的个头太大了有一百多M了,用VI看就象死机一样,TOP里资源被它占了大半,请大家教教我怎么看这个文件啊?有什么办法可以限制这个文件的大小呢?
由 werix 在 05-07-2003 17:06 发表:
use rotatelog in httpd to split the file into daily log, use command: "split" to cut it into pieces.. man split.
or tail -f error_log to watch "online" output
由 7dehao 在 05-08-2003 09:11 发表:
谢谢你的帮助!
如果可以固定error_log文件的大小就更好了。
提问时,请你附上相关硬件的型号或牌子,linux发行版、软件的名称和版本。
提问前,如果有可能的话,你最需要做的就是把出错信息和相关的日志信息贴上来。
当然,我们十分期望你能浏览一下置顶贴里的内容。
由 quanliking 在 05-08-2003 10:00 发表:
使用 tail 命令,看多少行,自己定呀。
man tail
There are two distinct opinions:
One would say, "The love of money is the root of all evil."
The other, "The lack of money is the root of all evil."
Which one i should take, that is the question.
由 7dehao 在 05-08-2003 16:10 发表:
看,当然可以。
可是,文件的块头太大了,难不成我要经常地手工删掉以前的东西?
提问时,请你附上相关硬件的型号或牌子,linux发行版、软件的名称和版本。
提问前,如果有可能的话,你最需要做的就是把出错信息和相关的日志信息贴上来。
当然,我们十分期望你能浏览一下置顶贴里的内容。 </