Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4238127
  • 博文数量: 1148
  • 博客积分: 25453
  • 博客等级: 上将
  • 技术积分: 11949
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-06 21:14
文章分类

全部博文(1148)

文章存档

2012年(15)

2011年(1078)

2010年(58)

分类: 嵌入式

2011-04-08 14:38:40

参考资料: tek大侠

1.下载地址:lighttpd-1.4.18.tar.bz2

2.解压:cd ../web-server/
        tar jxfv lighttpd-1.4.18.tar.bz2
        cd lighttpd-1.4.18

3.编译:
  1. root@yuweixian:/home/ywx/yu/src/web-server-src/lighttpd-1.4.18# CC=arm-linux-gcc ./configure --prefix=/lighttpd-bin --host=arm-linux --disable-FEUTARE --disable-ipv6 --disable-fls
 注意这里的 --prefix=/lighttp-bin  
 因为我们需要将 make install 生成的文件直接拷贝到自己文件系统根目录下  !!!!

 make
 make install

4.在主机虚拟机 /lighttpd-bin/ 生成了 
 bin  lib  sbin  share

5.复制 lighttpd.conf 到 文件系统/etc/
  cp ../lighttpd-1.4.8/docs/lighttpd.conf root-2.6.33/etc/

6.修改 lighttpd.conf
  1. server.document-root = "/web/html/"
屏蔽
  1. #$HTTP["url"] =~ "\.pdf$" {
  2. # server.range-requests = "disable"
  3. #}

在文件系统下增加:
原因1:
  1. server.errorlog = "/var/log/lighttpd/error.log"
mkdir -p var/log/lighttpd/
touch var/log/lighttpd/error.log

原因2
  1. accesslog.filename = "/var/log/lighttpd/access.log"
touch var/log/lighttpd/access.log


7.拷贝整个 /lighttpd  到文件系统
 mv /lighttpd ../root-2.6.33/

8.执行
  1. [root@yuweixian /]# /lighttpd/sbin/lighttpd -f /etc/lighttpd.conf
9.显示














阅读(1266) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~