记得有时候在启动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时就出现了启动日志。
阅读(1042) | 评论(0) | 转发(0) |