Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

急求,怎么配置lbname??????谢谢!!!

[复制链接]
lbname 发表于 2005-9-27 09:18:38 | 显示全部楼层 |阅读模式
急求,怎么配置lbname??????谢谢!!!

怎么配置 lbname.conf


BEGIN {

     $sockaddr_t = 'S n a4 x8';

     $WEIGHT_PER_USER = 100; # should be consistent with poller
     $need_maint = 0;
   $poller_sleep = 300;
  $poller_config = "sweet.config";
     $hostmaster = "schemers.leland.stanford.edu";

}


## NOTE: handle_best_request still contains two hard-coded references
## to stanford.edu. You should change them to match your domain.

LBDB::add_static("best.stanford.edu",T_SOA,
         rr_SOA(hostname,$hostmaster,time, 86400, 86400, 86400, 0)
);

LBDB::add_dynamic("best.stanford.edu"     => \&handle_best_request);

############################################################
# dynamic domain handlers...

sub by_weight { $weight{$a} <=> $weight{$b}; }

sub handle_best_request {
   my($domain,$residual,$qtype,$qclass,$dm) = @_;
 楼主| lbname 发表于 2005-9-27 14:04:32 | 显示全部楼层

斑竹怎么不回啊

斑竹怎么不回啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-12-24 01:00 , Processed in 0.022628 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表