⑴ HTML调用嵌入式Web服务器Boa的C语言编写CGI程序,C用system函数调用脚本,执行不成功。
应该是权限不够,运行被阻止。
⑵ 嵌入式web服务器boa怎么放到usrsrc
一:下载源码:从http://www.boa.org/官方网站下载源码,并将源码放置在/src 目录下。
[root@ EmbedSky ~]# cd /usr/src 进入源码目录
[root@ EmbedSky src]# tar zxvf boa-0.94.13.tar.tar 解压源码压缩包
[root@ EmbedSky src]# cd boa-0.94.13 进入源码解压包
[root@ EmbedSky boa-0.94.13]# cd src
[root@ EmbedSky src]# ./configure 生成makefile
二:编译前修改的文件:
1. 修改Makefile文件,找到CC=gcc和CPP=gcc -E,分别将其改为交叉编译器安装的路径:
CC=/usr/local/arm/2.95.3/bin/arm-linux-gcc
CPP=/usr/local/arm/2.95.3/bin/arm-linux-g++
保存退出。
2. 修改编译方式:
LDFLAGS = -g –static
注: 使用静态编译可以让目标文件自动的包含所需要的
库文件,而动态编译需要手工拷贝库文件。
3.修改/src/defines.h文件:
#define SERVER_ROOT "/etc/boa"
⑶ 嵌入式web服务器boa启动了怎么关闭,或重启
ps -aux | grep boa #查进程ID
kill -9 ID号 #关闭进程
或者重启下 系统 reboot
⑷ 嵌入式web服务器boa怎么放到usrsrc
一:下载源码:从http://www.boa.org/官方网站下载源码,并将源码放置在/src
目录下。
[root@
EmbedSky
~]#
cd
/usr/src
进入源码目录
[root@
EmbedSky
src]#
tar
zxvf
boa-0.94.13.tar.tar
解压源码
压缩包
[root@
EmbedSky
src]#
cd
boa-0.94.13
进入源码解压包
[root@
EmbedSky
boa-0.94.13]#
cd
src
[root@
EmbedSky
src]#
./
configure
生成makefile
二:编译前修改的文件:
1.
修改Makefile文件,找到CC=gcc和CPP=gcc
-E,分别将其改为
交叉编译器
安装的路径:
CC=/usr/local/arm/2.95.3/bin/arm-linux-gcc
CPP=/usr/local/arm/2.95.3/bin/arm-linux-g++
保存退出。
2.
修改
编译方式
:
LDFLAGS
=
-g
–static
注:
使用
静态编译
可以让目标文件自动的包含所需要的
库文件
,而
动态编译
需要手工拷贝库文件。
3.修改/src/defines.h文件:
#define
SERVER_ROOT
"/etc/boa"
⑸ 嵌入式web服务器支持服务接口开发么
仅支持部分。
为了提高对设备的易操作性,很多设备中提供pc机直接通过浏览器操作设备的功能。这就需要在设备中实现web服务器。现在在嵌入式设备中所使用的web服务器主要有:boa、thttpd、mini_httpd、shttpd、lighttpd、goaheand、appweb和apache等。
现在的嵌入式linux中CGI程序主要使用C语言。对于编写C语言的CGI程序,可以编写好程序之后,在linux操作系统下编译,用针对硬件平台的linux的交叉编译工具编译就可以,写的html网页界面在记事本写即可。我以前写的CGI程序就是在此环境下写的。这也是最普遍的开发方法。
⑹ 如何建立嵌入式BOA服务器
OH!!!!!!!!!!!!!!!!!!!!!!!!!1
⑺ 请教一个关于在嵌入式平台上的boa webserver的问题
用BOA作为WEB SERVER编译流程说明
WEB SERVER 编译流程说明:
1. 用BOA作为WEB SERVER
\src\makefile下载见附件。
2. 按照"举例介绍uclinux应用程序的编译方法"的步骤编译。但是在第7小步,要修改inittab.conf
/etc> cat inittab
inet:unknown:/bin/inetd
boa:unknown:/bin/boa -c /home 加入这一行
并且把boa.conf 和mime.types文件修改并拷贝到/home目录
为了让boa简单的跑起来:
boa.conf修改方法,粗体字表示修改了
# Boa v0.94 configuration file
# File format has changed little from 0.92
# version changes are noted in the comments
#
# The Boa configuration file is parsed with a lex/yacc or flex/bison
# generated parser. If it reports an error, the line number will be
# provided; it should be easy to spot. The syntax of each of these
# rules is very simple, and they can occur in any order. Where possible
# these directives mimic those of NCSA httpd 1.3; I saw no reason to
# introce gratuitous differences.
# The "ServerRoot" is not in this configuration file. It can be compiled
# into the server (see defines.h) or specified on the command line with
# the -c option, for example:
#
# boa -c /usr/local/boa
# Port: The port Boa runs on. The default port for http servers is 80.
# If it is less than 1024, the server must be started as root.
Port 80
# User: The name or UID the server should run as.
# Group: The group name or GID the server should run as.
User 0
# nobody
Group 0
# nogroup
# ServerAdmin: The email address where server problems should be sent.
# Note: this is not currently used.
#ServerAdmin root@localhost
# ErrorLog: The location of the error log file. If this does not start
# with /, it is considered relative to the server root.
# Set to /dev/null if you don't want errors logged.
#ErrorLog /home/error_log
#/var/log/boa/error_log
#ErrorLog /dev/null
# AccessLog: The location of the access log file. If this does not
# start with /, it is considered relative to the server root.
# Comment out or set to /dev/null (less effective) to disable
# Access logging.
#AccessLog /var/log/boa/access_log
#AccessLog /dev/null
# RefererLog: The location of the referer log file. If this does not
# start with /, it is considered relative to the server root.
# Comment out or set to /dev/null (less effective) to disable
# referer logging.
#RefererLog /var/log/boa/referer_log
#RefererLog /dev/null
# AgentLog: The location of the agent log file. If this does not
# start with /, it is considered relative to the server root.
# Comment out or set to /dev/null (less effective) to disable
# User-Agent logging.
#AgentLog /dev/null
#AgentLog /var/log/boa/agent_log
# VerboseCGILogs: this is just a logical switch.
# Comment out to disable.
#VerboseCGILogs
# ServerName: the name of this server that should be sent back to
# clients if different than that returned by gethostname -- often
⑻ 嵌入式web服务器和BOA有什么关系
boa是单任务的WEB服务器,编译后可以在嵌入式平台使用,要说关系嵌入式WEB服务器包含BOA,还有阿帕奇,HHTTP等很多
⑼ 嵌入式 ARM 网络服务器怎么搭建
BOA 服务器是一个小巧高效的web服务器,是一个运行于unix或linux下的,支持CGI的、适合于嵌入式系统的单任务的http服务器,源代码开放、性能高。 boa是一种非常小巧的Web服务器,其可执行代码只有大约60KB左右。作为一种单任务Web服务器,Boa只能依次完成用户的请求,而不会fork出新的进程来处理并发连接请求。但Boa支持CGI,能够为CGI程序fork出一个进程来执行。Boa的设计目标是速度和安全。cgi在物理上是一段程序,运行在服务器上,提供同客户端HTML页面的接口。即客户端与服务器的接口。比如留言本的工作流程:先由用户在客户端输入一些信息,如名字之类的东西。接着用户按一下“留言”(到目前为止工作都在客户端),浏览器把这些信息传送到服务器的CGI目录下特定的cgi程序中,于是cgi程序在服务器上按照预定的方法进行处理。在本例中就是把用户提交的信息存入指定的文件中。然后cgi程序给客户端发送一个信息,表示请求的任务已经结束。此时用户在浏览器里将看到“留言结束”的字样。整个过程结束。