免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 941 | 回复: 0
打印 上一主题 下一主题

2440+2.6.33嵌入式服务器移植 lighttpd (四) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-20 09:44 |只看该作者 |倒序浏览
参考资料: tek大侠

1.下载地址:lighttpd-1.4.18.tar.bz2 http://download.lighttpd.net/lighttpd/releases-1.4.x/

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.显示














您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP