zoukankan      html  css  js  c++  java
  • ARM板 web服务器交叉编译及配置 Lighttpd

    lighttpd

    lighttpd 版本:1.4.55

    1.编译、安装

    1.1 lighttpd官网下载安装包

    http://www.lighttpd.net/

    1.2 将编译包放进环境中

    ftp / 拖拽均可

    1.3 解压

    • tar -xvf lighttpd-1.4.55.tar.gz
    • cd lighttpd-1.4.55

    1.4 编译

    CC=aarch64-linux-gnu-gcc ./configure --prefix=/usr/local/mlwbd --host=aarch64-linux-gnu --without-zlib --without-bzip2

    1.5 安装

    make && make install

    注意:这时如果没有提前安装pcre环境就会报错,接下来安装pcre环境。

    1.6 pcre环境安装

    tip:我使用的pcre版本为8.39。

    • 1.6.1 解压
      • tar -xvf pcre-8.39.tar.gz
      • cd pcre-8.39
    • 1.6.2 编译
      • CC=aarch64-linux-gnu-gcc PCRECONFIG=/usr/local/pcre/bin/pcre-config ./configure --prefix=/usr/local --host=aarch64-linux-gnu --without-zlib --without-bzip2
    • 1.6.3 安装
      • make && make install

    完成以上操作且没有出现错误时,继续安装lighttpd

    1.7 继续安装

    回到lighttpd解压后的路径,重新执行make && make install 就不会报错了

    1.8 检查

    • cd /usr/local/mlwbd/sbin
    • file lighttpd
    • 如下表示正常

    1.9 进程更名及配置文件更名

    mv /usr/local/mlwbd/sbin/lighttpd /usr/local/mlwbd/sbin/mlwbd

  • 相关阅读:
    通过索引优化sql
    索引概述
    Spring整合Mybatis
    Mybatis逆向工程
    Mybatis级联
    Mybatis动态语句
    Mybatis—curd
    (转)最大似然估计&贝叶斯估计
    筛法求质——poj2262&2909
    (转)poj1182食物链
  • 原文地址:https://www.cnblogs.com/jmtang/p/13572382.html
Copyright © 2011-2022 走看看