linux下小型web服务器boa的使用,5.BoaWeb服务器使用详解

2.编译安装

实验环境:Linux 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:58:04 UTC 2016 i686 i686 i686 GNU/Linux

a.解压:tar xvf boa-0.94.13.tar.gz

b.进入src目录,运行:./configure(生成makefile)

然后运行:make

(问题1)出现如下错误:

checking for yywrap in -ll... no

checking for bison... no

checking for byacc... no

安装:sudo apt-get install bison flex

(问题2)出现如下错误:

yacc -d boa_grammar.y

make: yacc: Command not found

Makefile:59: recipe for target 'y.tab.c' failed

make: *** [y.tab.c] Error 127

(问题3) 出现如下错误:

compat.h:120:30: note: in definition of macro ‘TIMEZONE_OFFSET’

将#define TIMEZONE_OFFSET(foo) foo##->tm_gmtoff修改成 #define TIMEZONE_OFFSET(foo) (foo)->tm_gmtoff

(问题2)

[25/Jun/2018:02:43:20 +0000] log.c:73 - unable to dup2 the error log: Bad file descriptor

在/var/log下新建boa目录,权限为可读可写;

复制可执行文件:sudo cp boa /usr/bin/

开机自启动,在/etc/rc.local文件中写入: /usr/bin/boa

3.配置详解

4.相关资源:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值