linux安装lighttpd

1、安装所需的pcre库
tar zxvf pcre-7.9.tar.gz
cd pcre-7.9
./configure
make && make install


2、安装包:

下载网址:http://www.lighttpd.net/

lighttpd-1.4.23.tar(版本:1.4.23)


3、解压与编译
tar zxvf lighttpd-1.4.23.tar.gz
cd lighttpd-1.4.23
./configure --prefix=/usr/local/lighttpd
make && make install


4、在/usr/local/lighttpd/下建立etc、logs文件夹
mkdir /etc/lighttpd/
mkdir /var/log/lighttpd/


5、Lighttpd启动项
cp ./doc/rc.lighttpd.redhat /etc/init.d/lighttpd
chmod 755 /etc/init.d/lighttpd
vi /etc/init.d/lighttpd
LIGHTTPD_CONF_PATH="/etc/lighttpd/lighttpd.conf"(默认的配置文件)
lighttpd="/usr/local/lighttpd/sbin/lighttpd"(调用进程)
cp ./doc/sysconfig.lighttpd /etc/sysconfig/lighttpd


6、配置文件
cp ./doc/lighttpd.conf /etc/lighttpd/lighttpd.conf


7、WWW的权限
chown -R www:www /usr/local/lighttpd

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值