Boa是一个只有大概60KB的WebServer,很适合运行在嵌入式硬件设备的Web服务。
在 X86-Ubuntu中安装Boa的日志:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| $ wget http://www.boa.org/boa-0.94.14rc21.tar.gz $ tar zxvf boa-0.94.14rc21.tar.gz $ cd boa-0.94.14rc21/ $ ls aclocal.m4 config.guess configure contrib CREDITS examples extras Makefile.in src CHANGES config.sub configure.in COPYING docs extra_macros.m4 install-sh README $ ./configure $ make $ ls src/ access.c boa.c buffer.o compat.h defines.h get.o index_dir.o Makefile pipe.o range.o response.c signals.o util.c access.h boa.h cgi.c config.c escape.c globals.h ip.c Makefile.in poll.c read.c response.o sublog.c util.o alias.c boa_indexer cgi_header.c config.h escape.h hash.c ip.o mmap_cache.c queue.c read.o select.c sublog.o alias.o boa.o cgi_header.o config.h.in escape.o hash.o log.c mmap_cache.o queue.o request.c select.o timestamp.c boa buffer.c cgi.o config.o get.c index_dir.c log.o pipe.c range.c request.o signals.c timestamp.o $ sudo mkdir /etc/boa $ ls contrib/rpm/ boa.conf boa.init-redhat boa.init-suse boa.logrotate boa.spec $ sudo cp contrib/rpm/boa.conf /etc/boa $ sudo ./src/boa [13/Oct/2020:02:37:06 +0000] No such group: nobody [13/Oct/2020:02:37:06 +0000] log.c:53 (open_logs) - unable to open error log: No such file or directory $ sudo mkdir /var/log/boa $ sudo vim /etc/boa/boa.conf
Port 8080
User 0 Group 0
DocumentRoot /www $ sudo ./src/boa $ ps -ef|grep boa root 48727 1 0 11:00 pts/0 00:00:00 ./src/boa $ netstat -tnlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
|