本文主要是介绍【OrangePiKunPengPro】 linux下编译、安装Boa服务器,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
OrangePiKunPengPro
| linux
下编译、安装Boa
服务器
时间:2024年6月7日21:41:01
1.参考
1.boa- CSDN搜索
2.Boa服务器 | Ubuntu下编译、安装Boa_ubuntu安装boa-CSDN博客
3.i.MX6ULL—ElfBoard Elf1板卡 移植boa服务器的方法 (qq.com)
2.实践
2-1下载代码
[fly@752fac4b02e9 tool]$ git clone git@gitee.com:c-program/boa-0.94.13.git
Cloning into 'boa-0.94.13'...
remote: Enumerating objects: 89, done.
remote: Counting objects: 100% (89/89), done.
remote: Compressing objects: 100% (71/71), done.
remote: Total 89 (delta 18), reused 89 (delta 18), pack-reused 0
Receiving objects: 100% (89/89), 147.11 KiB | 378.00 KiB/s, done.
Resolving deltas: 100% (18/18), done.
2-2.编译
配置
[fly@752fac4b02e9 tools]$ cd boa-0.94.13/
[fly@752fac4b02e9 boa-0.94.13]$ ls
boa.conf ChangeLog contrib CREDITS docs examples extras Gnu_License README src
[fly@752fac4b02e9 boa-0.94.13]$ cd src/
[fly@752fac4b02e9 src]$ ls
acconfig.h boa_grammar.y cgi.c config.c defines.h globals.h ip.c parse.h request.c sublog.c
aclocal.m4 boa.h cgi_header.c config.h.in escape.c hash.c log.c pipe.c response.c timestamp.c
alias.c boa_lexer.l check_struct_for.m4 configure escape.h index_dir.c Makefile.in queue.c select.c util.c
boa.c buffer.c compat.h configure.in get.c install.mk mmap_cache.c read.c signals.c webindex.pl
[fly@752fac4b02e9 src]$ ./configure
修改交叉编译工具链
编译
[fly@752fac4b02e9 src]$ make
[fly@752fac4b02e9 src]$ ls
acconfig.h boa_indexer cgi.o config.o get.c ip.c mmap_cache.c read.o signals.o y.tab.c
aclocal.m4 boa_lexer.l check_struct_for.m4 config.status get.o ip.o mmap_cache.o request.c sublog.c y.tab.h
alias.c boa.o compat.h configure globals.h lex.yy.c parse.h request.o sublog.o y.tab.o
alias.o buffer.c config.c configure.in hash.c lex.yy.o pipe.c response.c timestamp.c
boa buffer.o config.cache defines.h hash.o log.c pipe.o response.o timestamp.o
boa.c cgi.c config.h escape.c index_dir.c log.o queue.c select.c util.c
boa_grammar.y cgi_header.c config.h.in escape.h index_dir.o Makefile queue.o select.o util.o
boa.h cgi_header.o config.log escape.o install.mk Makefile.in read.c signals.c webindex.pl
2-3.移植到开发板
[root@openEuler ~]# find /etc/ -name mime.types /etc/mime.types
因为板子已经有这个文件
mime.types
文件,因此不需要拷贝;
这篇关于【OrangePiKunPengPro】 linux下编译、安装Boa服务器的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!