Chinaunix首页 | 论坛 | 博客
  • 博客访问: 70052
  • 博文数量: 26
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 310
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-02 16:13
文章分类

全部博文(26)

文章存档

2009年(18)

2008年(8)

我的朋友
最近访客

分类: 系统运维

2008-12-24 11:24:15

参考
下载 lighttpd-1.4.20.tar
解压 tar xvf lighttpd-1.4.20.tar
到lighttpd-1.4.20目录
./configure --prefix=/userhome/zhongyj/sfw/lighttpd
make
make install

已经安装到/userhome/zhongyj/sfw/lighttpd目录
/userhome/zhongyj/sfw/lighttpd>mkdir logs
/userhome/zhongyj/sfw/lighttpd>mkdir html

创建配置文件
/userhome/zhongyj/sfw/lighttpd/sbin>vi lighttpd.conf
server.port = 3000
server.modules = (
                        "mod_access",
                        "mod_accesslog" )
server.document-root = "/userhome/zhongyj/sfw/lighttpd/html/"
server.errorlog = "/userhome/zhongyj/sfw/lighttpd/logs/error.log"
server.pid-file = "/userhome/zhongyj/sfw/lighttpd/lighttpd.pid"
index-file.names = ( "index.html" )
mimetype.assign = (
                        ".html" => "text/html",
                        ".js" => "text/javascript")
server.max-keep-alive-requests = 4000
dir-listing.activate = "disable"
 
accesslog.filename = "/userhome/zhongyj/sfw/lighttpd/logs/access.log"

创建html测试文件
/userhome/zhongyj/sfw/lighttpd/html>vi index.html

hello lighttpd

启动服务
/userhome/zhongyj/sfw/lighttpd/sbin>lighttpd -D -f lighttpd.conf

打开网页
这里172.0.0.1是本机,也可以在其他机器指定这个机器的IP
阅读(1142) | 评论(0) | 转发(0) |
0

上一篇:vmware fedora9

下一篇:buffer

给主人留下些什么吧!~~