免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1671 | 回复: 0
打印 上一主题 下一主题

下载配置lighttpd [复制链接]

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-04 09:48 |只看该作者 |倒序浏览
创建开发子目录 dev/,
下载

Lighttpd

源代码
并解压到其下,最新 Lighttpd 稳定版代码为 lighttpd-1.4.19:
$ mkdir dev
$ cd dev
$ wget
http://www.lighttpd.net/download/lighttpd-1.4.19.tar.bz2
$
tar
xjf lighttpd-1.4.19.tar.bz2
$ cd lighttpd-1.4.19
安装
必要的开发包:
$ ports/bzip2-devel
编译
安装(如果没有设置sudo,需要su为
root
用户):
$ ./configure
$ make
$ sudo make install
安装完成后 lighttpd 就被安装到了 /usr/local/sbin/lighttpd 这个位置上。
新建 lighttpd 配置
文件
/usr/local/etc/lighttpd.conf (路径随意,lighttpd
启动
时指定正确的配置文件路径即可),内容如下:
server.document-root = "/home/share/htdocs/lighttpd"
server.port = 7500
server.username= "nobody"
server.groupname = "nobody"
server.modules = ( "mod_access", "mod_accesslog" )
# performance settings
server.max-worker = 8
server.max-fds = 2048
server.max-connections = 1024
# no keep-alive permitted
server.max-keep-alive-requests=0
# specify possible index files for root directory
index-file.names = ( "index.html", "index.htm" )
# mimetype mapping
mimetype.assign = (
    ".html"         =>      "text/html",
    ".htm"          =>      "text/html",
    # default mime type
    ""              =>      "application/octet-stream",
)
# error log file path
server.errorlog = "/tmp/error"
# access log file path
accesslog.filename = "/tmp/access"
# WebDAV options
webdav.activate = "enable"
webdav.is-readonly = "disable"
启动 lighttpd:
$ sudo /usr/local/sbin/lighttpd -f /usr/local/etc/lighttpd.conf

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4206/showart_1358914.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP