Ubuntu安装lighttpdweb服务

来源:互联网 发布:python time 加减 编辑:程序博客网 时间:2024/06/05 07:27

我这里主要讲解通过源码来安装,当然也可以采用命令安装:  

yum install lighttpd 或者 apt-get install lighttpd

1,下载源码

wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.39.tar.gz

2,解压

tar -zxvf lighttpd-1.4.39.tar.gz

3,make

# cd lighttpd-1.4.39

# ./configure

# make

4,安装 # make install


很简单吧,但是往往现实是残酷的,你会发现各种报错!下面是我安装时遇到的问题解决方案:

出现configure: error: C compiler cannot create executables … 安装sudo apt-get install libc6-dev.

出现configure: error: configure: error: pcre-config not found … 安装sudo apt-get install libpcre3-dev
出现configure: error: zlib-headers and/or libs where not found … 安装sudo apt-get install zlib1g-dev

出现configure: error: bzip2-headers and/or libs where not found … 安装sudo apt-get install libbz2-dev



0 0