Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1072283
  • 博文数量: 132
  • 博客积分: 612
  • 博客等级: 中士
  • 技术积分: 1389
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-14 16:06
文章分类

全部博文(132)

文章存档

2015年(2)

2014年(55)

2013年(53)

2012年(2)

2011年(20)

分类: LINUX

2014-08-13 07:22:28

记得有时候在启动boa时可以终端上看到启动信息,如:
[12/Aug/2014:23:17:50 +0000] boa: server version Boa/0.94.13
[12/Aug/2014:23:17:50 +0000] boa: server built Aug 13 2014 at 06:58:44.
[12/Aug/2014:23:17:50 +0000] boa: starting server pid=2796, port 80

这对于调试来说是很方便的,但是不知道为什么,有时候有看不到这样的调试,感觉很奇怪,应该是在哪里修改了重定向的问题,但是在哪里呢。后来看了/etc/boa/boa.conf中有这个选项:

 64 # ErrorLog: The location of the error log file. If this does not start
 65 # with /, it is considered relative to the server root.
 66 # Set to /dev/null if you don't want errors logged.
 67 # If unset, defaults to /dev/stderr
 68 # Please NOTE: Sending the logs to a pipe ('|'), as shown below,
 69 #  is somewhat experimental and might fail under heavy load.
 70 # "Usual libc implementations of printf will stall the whole
 71 #  process if the receiving end of a pipe stops reading."
 72 #ErrorLog "|/usr/sbin/cronolog --symlink=/var/log/boa/error_log /var/log/boa/error-%Y%m%d.log"
 73 
 74 #ErrorLog /var/log/boa/error_log

于是果断把line74行给注释了,再次启动boa时就出现了启动日志。        
阅读(958) | 评论(0) | 转发(0) |
0

上一篇:Install mplayer on Fedora18

下一篇:assert

给主人留下些什么吧!~~