lighttpd移植

1.查看文件需要依赖什么动态库

linux@ubuntu:/home/work/imgae/lighttp/lighttpd-1.4.58/install$ aarch64-linux-gnu-readelf  -d  sbin/lighttpd

Dynamic section at offset 0x4bdf8 contains 25 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000c (INIT)               0x408b60
 0x000000000000000d (FINI)               0x43c144
 0x0000000000000019 (INIT_ARRAY)         0x45bde8
 0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x45bdf0
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
 0x000000006ffffef5 (GNU_HASH)           0x400260
 0x0000000000000005 (STRTAB)             0x404ae8
 0x0000000000000006 (SYMTAB)             0x401008
 0x000000000000000a (STRSZ)              11446 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000015 (DEBUG)              0x0
 0x0000000000000003 (PLTGOT)             0x45bfe8
 0x0000000000000002 (PLTRELSZ)           3576 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x407d68
 0x0000000000000007 (RELA)               0x407cd8
 0x0000000000000008 (RELASZ)             144 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffffe (VERNEED)            0x407c88
 0x000000006fffffff (VERNEEDNUM)         2
 0x000000006ffffff0 (VERSYM)             0x40779e
 0x0000000000000000 (NULL)               0x0

编译:

./configure --prefix=/home/work/imgae/lighttp/lighttpd-1.4.58/install --host=mipsel-linux-gnu --disable-lfs --disable-ipv6 --without-openssl --without-kerberos5 --without-pcre --without-zlib --without-bzip2 --without-lua "CC=aarch64-linux-gnu-gcc" 

 

make

 make install 

配置:


cd /home/djstava/Downloads/lighttpd-1.4.35/install
mkdir -p cache cgi-bin config log sockets vhosts webpages
cp -rf lighttpd-1.4.35/doc/config/config.d lighttpd-1.4.35/doc/config/lighttpd.conf li
修改配置文件 config/lighttpd.conf

var.log_root    = "/home/djstava/Downloads/lighttpd-1.4.35/install/log" 
var.server_root = "/home/djstava/Downloads/lighttpd-1.4.35/install" 
var.state_dir   = "/home/djstava/Downloads/lighttpd-1.4.35/install"  
var.home_dir    = "/home/djstava/Downloads/lighttpd-1.4.35/install"  
var.conf_dir    = "/home/djstava/Downloads/lighttpd-1.4.35/install/config"    

server.document-root = server_root + "/webpages"    

#server.username  = "lighttpd"  
#server.groupname = "lighttpd" 

 

 

 

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值