2010年5月11日 星期二

嵌入式網頁伺服器 - BOA

BOA是一種精簡的WEB SERVICE在嵌入式系統中有很高的應用價值~

如何移植BOA Web Server 到嵌入式開發板呢?請參照下列步驟~在BOA伺服器中
支援用C語言寫的 CGI程式~所以我們可以透過一些CGI程式來達到控制硬體目標~!
Step 1 下載BOA 原始碼
    下載 boa-0.94.13.tar.gz
#tar zxvf boa-0.94.13.tar.gz
Step 2 產生一個Makefile
#./src/configure -host=arm-linux
Step 3 修改Makefile檔案內的編譯器路徑
CC = arm-linux-gcc
CPP = arm-linux-gcc -E
#make
#arm-linux-strip boa
Step 4 設定BOA
  修改BOA原始檔src的boa.conf 這個設定檔 並放到根目錄系統/etc/boa
Port 80
User root
Group root
ErrorLog /dev/console
AccessLog /dev/null
ServerName test
DocumentRoot /www
DirectoryIndex index.html
Step 5 把編譯好的boa執行檔 複製到/bin 並啟動boa
#./boa&

沒有留言:

張貼留言