compile boa
1. ./configure --host=arm-linux
2. make
compile cgi app
1. arm-linux-gcc -o cgitest.cgi cgitest.c
2. arm-linux-strip cgitest.cgi
boa configure:
1. User root
Group root
2. ServerName www.test.cn
3. #VHostRoot /var/www
4. ScriptAlias /cgi-bin/ /var/www/cgi-bin/
run boa:
mkdir /etc/boa
cp boa.conf /etc/boa/
mkdir /var/log
mkdir /var/log/boa
mkdir /var/www
cp -r index* /var/www/
mkdir /var/www/cgi-bin
cp /etc/mime.types /etc/
cp boa /
./boa &
http://192.168.0.111/
http://192.168.0.111/cgi-bin/cgitest.cgi
分享到:
2011-07-26 10:29
浏览 515
评论