Chinaunix

标题: log.c:74 - unable to dup2 the error log: Bad file d [打印本页]

作者: djtpaopao    时间: 2011-05-15 12:37
标题: log.c:74 - unable to dup2 the error log: Bad file d
up-tech:/bin #boa
[01/Jan/1970:00:07:36 +0000] log.c:74 - unable to dup2 the error log: Bad file d
escriptor

但我在移植完boa服务器的时候在开发板上运行 boa命令出现上面的情况 请问高手这是什么原因啊 怎么解决???
作者: nazily2150    时间: 2011-05-15 15:18
网上有相关的解决方法:
1~确定日志目录对所有用户都具有可读/可写的权限
2~注释掉
if(dup2(error_log, STDERR_FILENO)==-1){
DIE("unable to dup2 the error log");
}
作者: djtpaopao    时间: 2011-05-15 21:59
回复 2# nazily2150


    我已经这样做过了 但是运行boa时显示
up-tech:~ #boa
gethostbyname:: Success
但打开网页的时候 不显示主页 这是为啥啊
请指教
作者: nazily2150    时间: 2011-05-15 22:34
你tail一下error_log报什么错
没有显示主页:
1~请确认你的默认主页的位置,在boa.conf中可以设置,并且需要默认主页的名称(一般为index.html,即输入http://$ip时的默认主页)
2~可以尝试使用http://$ip/xxx.html来访问一下
作者: djtpaopao    时间: 2011-05-23 07:50
回复 4# nazily2150


    谢谢我已经弄好了 跟你说的差不多




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2