免费注册 查看新帖 |

Chinaunix

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

lighttpd+freebs6.2问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-30 10:46 |只看该作者 |倒序浏览
1。6.2-RELEASE,内核文件加了一条options         ACCEPT_FILTER_HTTP,其余除把多于的驱动删除了没做改动。
2。/etc/sysctl.conf
    kern.maxfiles=65536
kern.ipc.somaxconn=8192
net.inet.udp.blackhole=1
net.inet.ip.forwarding=1
net.inet.tcp.msl=2000
net.inet.icmp.icmplim=50
net.inet.tcp.syncookies=1
kern.ipc.maxsockbuf=4194304
net.inet.tcp.delayed_ack=0
net.inet.tcp.blackhole=2
net.inet.tcp.sendspace=65536
kern.ipc.shmall=32768
kern.maxvnodes=150000
3。/boot/loader.conf
   kern.maxusers=512
kern.ipc.nmbclusters="0"
#kern.ipc.nsfbufs=65536
kern.ipc.shm_use_phys=1
net.inet.tcp.tcbhashsize=16384
kern.ipc.maxpipekva=33554432
4。lighttpd.error.log内容
2007-07-30 10:17:57: (network_freebsd_sendfile.c.153) file was shrinked: /home/web/1.htm
2007-07-30 10:17:57: (connections.c.573) connection closed: write failed on fd 19
2007-07-30 10:18:16: (network_freebsd_sendfile.c.175) sendfile:  Connection reset by peer 54
2007-07-30 10:18:16: (connections.c.573) connection closed: write failed on fd 7
2007-07-30 10:18:37: (network_freebsd_sendfile.c.175) sendfile:  Connection reset by peer 54
2007-07-30 10:18:37: (connections.c.573) connection closed: write failed on fd 7
2007-07-30 10:18:48: (connections.c.132) (warning) close: 7 Invalid argument
2007-07-30 10:19:04: (network_freebsd_sendfile.c.175) sendfile:  Connection reset by peer 54
2007-07-30 10:19:04: (connections.c.573) connection closed: write failed on fd 7

2007-07-30 10:19:15: (connections.c.132) (warning) close: 7 Invalid argument
5。lihttpd.conf
server.modules   = ( "mod_access",
                     "mod_compress",
                     "mod_accesslog" )

server.document-root = "/home/web/"

server.errorlog = "/usr/local/lighttpd/log/lighttpd.error.log"

index-file.names            = ( "index.html" )

server.event-handler = "freebsd-kqueue"
#server.event-handler = "poll"

#server.max-connections = 8192
server.max-fds = 16384

server.max-keep-alive-requests = 0
#server.max-keep-alive-idle = 30
server.max-keep-alive-idle = 0
server.max-read-idle = 120
server.max-write-idle = 1440


mimetype.assign   = ( ".png"  => "image/png",
                ".jpg"  => "image/jpeg",
                ".jpeg" => "image/jpeg",
                ".gif" => "image/gif",
                ".js" => "text/javascript",
               ".htm" => "text/htm",
                ".html" => "text/html")

accesslog.format = "%h %l %u %t \"%r\" %b %>s \"%{User-Agent}i\" \"%{Referer}i\""
accesslog.filename = "/usr/local/lighttpd/log/lighttpd.log"

server.port = 80

server.pid-file            = "/usr/local/lighttpd/log/lighttpd.pid"

#server.username = "lighttpd"
#server.groupname = "lighttpd"
server.max-worker = 4

compress.filetype  = ("text/plain", "text/html")



把能调的Lighttp参数都调了一遍,没有任何效果,netstat an|grep EST|wc -l到3300左右就很不稳定了,经常拒绝连接。搞得我头都大了,各位高手帮忙分析下吧

论坛徽章:
0
2 [报告]
发表于 2007-07-30 10:59 |只看该作者
开始用的源码安装的lighttpd4.15,后来用ports装4.12都不行。在我的印象中freebsd4.11都没问题的。眼下主流服务器4.11又驱动不了,真的很头疼啊。

论坛徽章:
0
3 [报告]
发表于 2007-07-30 11:49 |只看该作者
在线等啊,兄弟们
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP