一、软件包

a) pcre-devel-6.6-2.el5_1.7.i386.rpm

b) lighttpd-1.4.28.tar.gz

二、安装步骤

a) Rpm –ivh pcre-devel-6.6-2.el5_1.7.i386.rpm

b) Tar zxvf lighttpd-1.4.28.tar.gz

c) Cd lighttpd-1.4.28

d) ./configure –prefix=/usr/local/lighttpd

e) Make

f) Make install

g) Mkdir /etc/lighttpd

h) cp doc/config/lighttpd.conf /etc/lighttpd/

i) cp -r doc/config/conf.d/ /etc/lighttpd/conf.d/

j) cp doc/config/modules.conf /etc/lighttpd/

k) cp doc/initscripts/rc.lighttpd.redhat /etc/init.d/lighttpd

l) vi /etc/init.d/lighttpd

找到prog="lighttpd"节,注释掉默认的,添加:
lighttpd="/usr/local/lighttpd/sbin/lighttpd"

m) mkdir –p /srv/www/htdocs

n) useradd lighttpd

o) chown –r lighttpd:root /srv/www/htdocs

p) cd /srv/www/htdocs

q) vi index.html

r) chkconfig –add lighttpd

s) chkconfig lighttpd on

t) server lighttpd start

u) ps aux|grep lighttpd

v) http://localhost/index.html

相关文章:

  • 2021-12-22
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2021-08-25
  • 2021-11-12
  • 2022-01-09
猜你喜欢
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2021-12-04
  • 2021-11-26
  • 2021-08-27
相关资源
相似解决方案