當前位置:首頁 » 網頁前端 » 嵌入式boaweb伺服器
擴展閱讀
webinf下怎麼引入js 2023-08-31 21:54:13
堡壘機怎麼打開web 2023-08-31 21:54:11

嵌入式boaweb伺服器

發布時間: 2022-10-19 02:29:25

⑴ 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程序給客戶端發送一個信息,表示請求的任務已經結束。此時用戶在瀏覽器里將看到「留言結束」的字樣。整個過程結束。