程序员人生 网站导航

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

栏目:综合技术时间:2015-08-18 07:44:57

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:利用防火墙规则: [肯定]
------分隔线----------------------------
------分隔线----------------------------

最新技术推荐