[英]Cannot connect to local svn server
我正在使用VisualSVN Server 3.0.1和TortoiseSVN 1.8。 使用VisualSVN服务器管理器,我在C:\\驱动器中创建了一个名为“彩票”的存储库。 我在计算机上启动了所有VisualSVN Server的服务。 我检查了VisualSVN Server的HTTP服务是否正在运行,以及VDFS服务是否正在运行。 我还使用VisualSVN服务器管理器使两个用户分别使用密码1234和harry和sally。 我创建了一个目录C:\\ workdirs。 在那儿,有两个文件夹供我的用户使用。 当我导航到harry的文件夹并运行svn命令时,出现错误。 请帮我解决。
C:\workdirs\harry>svn co --username harry --password 1234 https://james/svn/lottery/
该URL是完全从VisualSVN Server Manager复制粘贴的。 我得到了错误-
C:\workdirs\harry>svn co --username harry --password 1234 https://james/svn/lottery/
svn: E731001: Unable to connect to a repository at URL 'https://james/svn/lottery'
svn: E731001: No such host is known.
我尝试的解决方案-
显然,您无法直接进入需要在路径中包含存储库文件名的SVN文件夹。
因此,我尝试使用带有端口的URL和repo文件夹名称来查看它是否有助于svn co --username harry --password 1234 https://james:443/svn/lottery/
Btw,james是我在视觉svn服务器属性中看到了svn服务器。
产生的错误是-
svn: E731004: Unable to connect to a repository at URL
'https://james/svn/lottery'
svn: E731004: The requested name is valid, but no data
of the requested type was found.
接下来 ,我尝试使用http而不是https并得到相同的错误。
接下来 ,我尝试使用这样的网址https://localhost/james:443/svn/lottery/
我得到了错误-
Error validating server certificate for 'https://localhost:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
- The certificate hostname does not match.
Certificate information:
- Hostname: steam
- Valid: from sometime in 2014 GMT until sometime in 2020 GMT
- Issuer:
- Fingerprint: 6a:7b:8c:....
(R)eject, accept (t)emporarily or accept (p)ermanently? p
svn: E175013: Unable to connect to a repository at URL
'https://localhost/james:443/svn/lottery'
svn: E175013: Access to '/james:443/svn/lottery' forbidden
最后,我想到了使用我提供的链接中提到的计算机IP地址。 我不知道IP是什么,但是我尝试使用localhost
来代替它,它能正常工作!
C:\workdirs\harry>svn co --username
harry --password 1234 https://localhost/svn/lottery/
Checked out revision 0.
这对我有用-
svn co --username harry --password 1234 https://localhost/svn/lottery/
我不必在localhost之后添加端口号。 它有效,但是我不知道发生了什么。 顺便说一句,在运行此命令之前,请确保您的Visual SVN Windows服务正在运行。
您的本地DNS不知道“ james”主机名代表您的计算机,因此您得到“ No such host is known
错误。 如果单独使用VisualSVN Server,则可以在hosts
文件中添加一个引用,即“ james”是计算机的名称。
否则,请与您的网络管理员联系,并询问您局域网上计算机的主机名是什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.