keepalived提示curl: (7) couldn't connect to host,如何解决?

死神骑士 发布于 2012/09/24 09:33
阅读 3K+
收藏 0

我的代码如下:

! Configuration File for keepalived
vrrp_instance VI_1 {
    state BACKUP
    interface eth0
    virtual_router_id 51
    priority 90
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        159.226.154.245
    }
}

virtual_server 159.226.154.245 443 {
    delay_loop 6
    lb_algo rr
    lb_kind NAT
    nat_mask 255.255.255.0
    persistence_timeout 50
    protocol TCP

    real_server 159.226.154.238 443 {
        weight 1
        SSL_GET {
            url {
              path /
              digest ff20ad2481f97b1754ef3e12ecd3a9cc
            }
            url {
              path /mrtg/
              digest 9b3a0c85a887a256d6939da88aabd8cd
            }
            connect_timeout 3
            nb_get_retry 3
            delay_before_retry 3
        }
    }
}

[

 

测试的时候出现了一下问题:

root@localhost ~]# curl http://159.226.154.245
curl: (7) couldn't connect to host

 

请问如何让解决?谢谢!!

 

加载中
返回顶部
顶部