IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    [原]Can\'t connect to host \'*.*.*.*\': 由于连接方在一段时间后没有正确答复或连接的主机没有响应,连接尝试失败。

    testcs_dn发表于 2015-04-30 11:48:40
    love 0

    SVN服务器信息:


    操作系统:CentOS 6.5
    SVN版本:

    svn --version
    svn, version 1.8.11 (r1643975)
       compiled Apr 27 2015, 03:11:15 on x86_64-unknown-linux-gnu
    
    Copyright (C) 2014 The Apache Software Foundation.
    This software consists of contributions made by many people;
    see the NOTICE file for more information.
    Subversion is open source software, see http://subversion.apache.org/
    
    The following repository access (RA) modules are available:
    
    * ra_svn : Module for accessing a repository using the svn network protocol.
      - with Cyrus SASL authentication
      - handles 'svn' scheme
    * ra_local : Module for accessing a repository on local disk.
      - handles 'file' scheme

    发生此错误环境:


    操作系统:Windows 7
    SVN客户端:

    TortoiseSVN 1.6.7, Build 18415 - 64 Bit , 2010/01/22 17:55:06
    Subversion 1.6.9, 
    apr 1.3.8
    apr-utils 1.3.9
    neon 0.29.3
    OpenSSL 0.9.8k 25 Mar 2009
    zlib 1.2.3

    错误场景:


    这里写图片描述

    问题原因:


    1、网络原因,主机不可达;
    2、服务没有启动;
    3、防火墙拦截;
    我遇到的就是这个问题。

    解决方法:


    添加入站规则:

    [root@localhost svn]# /sbin/iptables -I INPUT -p tcp --dport 3690 -j ACCEPT
    [root@localhost svn]# /etc/init.d/iptables save
    iptables:将防火墙规则保存到 /etc/sysconfig/iptables:     [确定]
    [root@localhost svn]# service iptables restart
    iptables:将链设置为政策 ACCEPT:filter mangle nat         [确定]
    iptables:清除防火墙规则:                                 [确定]
    iptables:正在卸载模块:                                   [确定]
    iptables:应用防火墙规则:                                 [确定]


沪ICP备19023445号-2号
友情链接