- 论坛徽章:
- 0
|
最近在s3c2410上做boa的移植,暂时用的是静态页面,boa.conf中几个相关选项为:
User nobody
Group 0
ServerName www.your.org.here
DocumentRoot /var/www
MimeTypes /etc/mime.types
出现了以下现象:
启动boa后查看错误log,显示内容为:
# cat /var/log/boa/error_log
[04/Dec/2030:15:58:09 +0000] boa: server version Boa/0.94.13
[04/Dec/2030:15:58:09 +0000] boa: server built Jul 12 2008 at 15:18:25.
[04/Dec/2030:15:58:09 +0000] boa: starting server pid=48, port 85
从这里显示的内容来看,boa像是正常启动了,但在pc机端输入http://ip 后提示错误号为404,返回到目标机端查的其状态为
sleeping。
之后从/proc/48/exe输出中看到了一些信息,前后都有些乱码,我只抓取了中间部分信息,如下:
.....
Could not open mime.types file, "%s", for reading
Error on line %d of %s: %s
boa.confmime.typesalias.cNULL values sent to add_aliasempty values sent to add_aliasout of memory adding alias to hashfailed strdup!
unable to strdup buffer onto req->pathnameCould not strdup buffer for req->pathname!application/x-httpd-cgiCould not strdup req->re]
getrlimitforkunable to create socketfcntl: unable to set server socket to nonblockingcan't set close-on-exec on server socket!setsod
/etc/boastrdup (SERVER_ROOT)Could not chdir to "%s": aborting
Ran out of Buffer space!
buffer flushmallocPATH/bin:/usr/bin:/usr/local/binSERVER_SOFTWAREBoa/0.94.13SERVER_NAMEGATEWAY_INTERFACECGI/1.1SERVER_PORTSERVER_AD.
Unable to allocate a component of common_cgi_env - out of memory.
malloctried to allocate (key=value) extra=%d: %s=%s
Unable to generate additional CGI Environmentvariable -- ran out of memory!
HTTP_Unable to generate additional CGI Environmentvariable -- not enough space!
...
后面还有好些信息,主要是关于cgi_header和html的一些相关信息,而且提示说
log.c unable to open error log unable to dup2 the error log unable to fcntl the error logw,
...
buffer overrun - read.c, read_header - closing
...
Your client does not have permission to get URL from this server
....
server的异常信息等。
从中间部分内容看来好像是memory的问题,但是前面的Could not open mime.types file, "%s", for reading又不知该如何解释,我想一个一个错误进行排除,用了交叉调试环境进行调试,可是还没到这里的输出就死了n多遍,请前辈指教。 |
|