主题 : boa移植后打不开网页 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 5168
精华: 0
发帖: 81
金钱: 555 两
威望: 321 点
综合积分: 162 分
注册时间: 2009-04-12
最后登录: 2014-10-29
楼主  发表于: 2009-08-14 01:48

 boa移植后打不开网页

大家好,我在自己制作的根文件系统上添加boa相关的配置,boa的移植参考网上的资料,这方面的移植资料都差不多,我觉得不容易出错,并且仔细检查了很多遍没发现问题。由于不是用友善的平台,从内核和根文件系统、网卡是自己移植/配置的,网卡移植后ping正常不会丢包,在根文件系统里面参考网上的资料配置了网络设置,比如DNS、网关之类的,把这些配置和boa移植后的文件都放入根文件系统后启动开发板,出现如下信息:
1、
。。。
Freeing init memory: 124K
----------munt all----------------
network interface
Jan  1 00:00:09 MrFeng syslog.info syslogd started: BusyBox v1.13.3
start net_set
Try to bring eth0 interface up ...
ifconfig eth0 hw ether 10:23:45:67:89:ab
dm9000 dm9000.0: WARNING: no IRQ resource flags set.
eth0: link up, 10Mbps, half-duplex, lpa 0x0021
ifconfig eth0 192.168.1.230 netmask 255.255.255.0 up
add default gw 192.168.1.1
Done
start httpd
[01/Jan/1970:00:00:10 +0000] boa: server version Boa/0.94.13
[01/Jan/1970:00:00:10 +0000] boa: server built Aug 13 2009 at 20:43:08.
[01/Jan/1970:00:00:10 +0000] boa: starting server pid=839, port 80

****************Studying ARM*********************
Kernel version:linux-2.6.29.1
Student:Feng dong rui
Date:2009.07.15
**************************************************

Please press Enter to activate this console.
Jan  1 00:00:52 MrFeng daemon.info init: starting pid 840, tty '': '-/bin/sh'
[rootMrFeng]#
        在按Enter键进入终端时出现的那个“Jan  1 00:00:52 MrFeng daemon.info init: starting pid 840, tty '': '-/bin/sh'”不知道是什么错误,会不会是这里是移植boa不能打开网页的原因?

    我又重启开发板,又得到如下的启动信息,这是我多次启动后观察到的。
2、
Freeing init memory: 124K
----------munt all----------------
mkdir: cannot create directory '/dev/pts': File exists
network interface
start net_set
Try to bring eth0 interface up ...
ifconfig eth0 hw ether 10:23:45:67:89:ab
dm9000 dm9000.0: WARNING: no IRQ resource flags set.
eth0: link up, 10Mbps, half-duplex, lpa 0x0021
ifconfig eth0 192.168.1.230 netmask 255.255.255.0 up
add default gw 192.168.1.1
Done
start httpd
gethostbyname:: Success
****************Studying ARM*********************
Kernel version:linux-2.6.29.1
Student:Feng dong rui
Date:2009.07.15
**************************************************

Please press Enter to activate this console.
[rootMrFeng]#

这里启动信息1的“gethostbyname:: Success”和启动信息2中的“[01/Jan/1970:00:00:10 +0000] boa: server version Boa/0.94.13
[01/Jan/1970:00:00:10 +0000] boa: server built Aug 13 2009 at 20:43:08.
[01/Jan/1970:00:00:10 +0000] boa: starting server pid=839, port 80
”不同,不知道这里是什么造成的?
      这是我boa移植后所出现的问题,恳请指点迷津。先谢了!
非学无以广才,非志无以成学。--诸葛亮《诫子书》
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-08-14 08:53
在按Enter键进入终端时出现的那个“Jan  1 00:00:52 MrFeng daemon.info init: starting pid 840, tty '': '-/bin/sh'”不知道是什么错误,会不会是这里是移植boa不能打开网页的原因?

不要乱怀疑,这是你登录shell的正常信息。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2009-08-14 08:55
不要再提这种没头没脑的问题,起码写清楚谁打不开谁的网页,出现什么错误。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 5168
精华: 0
发帖: 81
金钱: 555 两
威望: 321 点
综合积分: 162 分
注册时间: 2009-04-12
最后登录: 2014-10-29
3楼  发表于: 2009-08-14 09:05
引用第1楼kasim于2009-08-14 08:53发表的  :

不要乱怀疑,这是你登录shell的正常信息。

请问既然启动信息正常,为何打不开web服务器页面?我仔细检查了一遍网络配置和boa移植,都没发现哪里有明显不对的地方。
    局域网没有问题,我用下载友善的二进制文件后能够在浏览器打开web服务器页面,证明局域网没有问题。
以后会注意提问的,谢谢版主。
非学无以广才,非志无以成学。--诸葛亮《诫子书》
级别: 侠客
UID: 4545
精华: 3
发帖: 88
金钱: 810 两
威望: 614 点
综合积分: 236 分
注册时间: 2009-03-19
最后登录: 2020-06-17
4楼  发表于: 2009-08-14 10:13
boa.conf 贴出来看看啊
级别: 侠客
UID: 5168
精华: 0
发帖: 81
金钱: 555 两
威望: 321 点
综合积分: 162 分
注册时间: 2009-04-12
最后登录: 2014-10-29
5楼  发表于: 2009-08-14 12:40
boa.conf内容如下:
Port 80

#Listen 192.68.0.5

User nobody
Group root

ErrorLog /dev/console

AccessLog /dev/null

# ServerName: the name of this server that should be sent back to
# clients if different than that returned by gethostname + gethostbyname

#ServerName studyarm

# VirtualHost: a logical switch.

DocumentRoot /www

DirectoryIndex index.html

#DirectoryMaker /usr/lib/boa/boa_indexer

# DirectoryCache /var/spool/boa/dircache

KeepAliveMax 1000

KeepAliveTimeout 10

MimeTypes /etc/mime.types

DefaultType text/plain

CGIPath /bin:/usr/bin:/usr/sbin:/sbin

#Alias /doc /usr/doc

ScriptAlias /cgi-bin/ /www/cgi-bin/

       在我的根文件系统的根目录www下已经存放了index.html网页,www/cig-bin下存放了cgic库和测试文件。该网页在XP下用浏览器能够打开显示。
非学无以广才,非志无以成学。--诸葛亮《诫子书》
级别: 侠客
UID: 4270
精华: 0
发帖: 100
金钱: 995 两
威望: 856 点
综合积分: 200 分
注册时间: 2009-03-07
最后登录: 2011-09-06
6楼  发表于: 2009-08-14 20:10
User nobody     你的用户组里有nobody吗???
Group root
ErrorLog /dev/console     这个是出现错误,记录的文档啊,怎么和设备扯上关系了???
AccessLog /dev/null      这个也不行啊

给你几个boa移植不错的链接,我参考以下几个   我的boa没问题。。。
http://www.cnitblog.com/suyiwei/articles/41387.html
http://www.litespeedtech.com/web-server-performance-comparison-litespeed-2.0-vs.html
http://blog.csdn.net/fazai001/archive/2009/01/18/3827294.aspx
http://www.cedn.cn/bbs/viewthread.php?tid=22943
http://blog.chinaunix.net/u1/34474/showart.php?id=486604
本论坛不提供技术支持,这里是友善之臂用户交流的地方,希望大家共创和谐论坛~~~
级别: 侠客
UID: 5168
精华: 0
发帖: 81
金钱: 555 两
威望: 321 点
综合积分: 162 分
注册时间: 2009-04-12
最后登录: 2014-10-29
7楼  发表于: 2009-08-15 03:15
非常感谢!
非学无以广才,非志无以成学。--诸葛亮《诫子书》
级别: 新手上路
UID: 938
精华: 0
发帖: 10
金钱: 55 两
威望: 10 点
综合积分: 20 分
注册时间: 2008-06-26
最后登录: 2017-09-13
8楼  发表于: 2010-05-14 09:01
to 6楼
AccessLog /dev/null
ErrorLog /dev/console 都没问题的

我有遇到打不开的问题,至今没解决