如何在centos下编译安装lighttpd

二月 5th, 2010 Posted in Lighttpd | 阅读次数: 705 次

Author:gaojinbo
Time:2010-1-28

如何在centos下编译安装lighttpd

 

1.环境:
centos 5.4
lighttpd 1.4.25

 

2.安装开发工具和开发库
yum groupinstall "Development Tools" "Development Libraries"

 

3.为支持memcache  支持cache-fam,安装相关组件
yum -y install gamin-devel  libevent-devel pcre-devel libmemcache-devel

注:安装rpmforge库才能用yum安装libmemcache-devel

 

4.lighttpd下载地址
http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.25.tar.gz

 

5.配置
./configure –prefix=/usr/local/lighttpd –with-fam –with-memcache

 

6.编译安装
make
make install

 

7.建立相关目录
mkdir /var/log/lighttpd

mkdir /etc/lighttpd

cp  doc/lighttpd.conf  /etc/lighttpd/lighttpd.conf

cp doc/rc.lighttpd.redhat  /etc/init.d/lighttpd

chkconfig lighttpd on

ln -s /usr/local/lighttpd/sbin/lighttpd   /usr/sbin/lighttpd 

 

8.修改lighttpd配置文件,根据自己的需求进行更改
vi /etc/lighttpd/lighttpd.conf

 

9.启动lighttpd
service lighttpd start

 

完成!

相关日志:

Tags:

One Response to “如何在centos下编译安装lighttpd”

  1. 上善若水 Says:

    上善若水,再次申请链接


留下您的脚印