有没有办法知道SVN服务器的URL?
目前,由于未知主机名错误,我们在允许客户端访问 SVN 服务器时遇到问题。 是否有错误可以告诉服务器计算机正确的 SVN 服务器 URL?
我在 Collabnet Subversion Server 上,客户端使用 TortoiseSVN。
Right now, we are having problems allowing the client to access the SVN server because of the unknown host name error. Is there an error which will tell the correct SVN server URL from the server computer?
I am on Collabnet Subversion Server and the client uses TortoiseSVN.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
“未知主机名错误”意味着由于某种原因您无法访问您在尝试与 Subversion 一起使用的 URL 中提到的主机。 例如,如果您的 URL 为 http://myCollabnetSubversionServerName/svn/mySuperProject/trunk 则表示您无法访问 myCollabnetSubversionServerName。 客户端计算机能否看到 myCollabnetSubversionServerName 服务器?
哦抱歉,还要回答这个问题本身:通常存储库的 URL 是 http:// 或 https:// 后跟服务器计算机的名称(如果您位于 LAN 中),或者域名(如果您的服务器位于互联网上),后面可能是您的网络服务器侦听的端口(如果是默认值,则不必输入此内容),然后是由svn,后跟存储库名称。
示例:
或
"unknown host name error" means that for some reason you cannot access the host that you mention in the URL you are trying to use with Subversion. For example, if your URL is http://myCollabnetSubversionServerName/svn/mySuperProject/trunk then it means that you cannot reach myCollabnetSubversionServerName. Can the client computer see the myCollabnetSubversionServerName server?
Oh sorry, to also answer the question itself: Usually the URL of a repository is http:// or https:// followed by the name of the server computer if you are in a LAN, or the domain name if your server is on the Internet, maybe followed by the port your web server listens to (if it is default you don't have to put this), followed by svn, followed by the repository name.
Examples:
or
这是 Subversion 错误吗? 如果您的客户端无法解析您的 Subversion 服务器名称,这听起来更像是与 DNS/WINS 相关的错误。
如果“ping 主机名”无法解析主机名,则这不是 Subversion 错误。
Is that a Subversion error ? It sounds more like a DNS/WINS related error if your client can't resolve your Subversion server name.
If 'ping hostname' can't resolve the hostname, then it's not a Subversion error.
您可以使用 ping 等方式连接到服务器吗?
如果您使用服务器的 IP 地址而不是主机名,也许会有所帮助。 如果您想找出您的 IP 地址但不知道如何操作,您可以访问 http:// www.whatismyip.com/ 从服务器找出。 这是假设您的服务器可以从互联网而不是本地网络访问。
Can you reach the server using e.g. ping?
Perhaps it helps if you use the server's IP address instead of its hostname. If you want to find out your IP address but don't know how to, you might be able to visit http://www.whatismyip.com/ from the server to find out. This is assuming your server will be accessible from the internet instead of your local network.
我真的很怀疑是否有办法从服务器返回正确的服务器 URL。 未知主机名的解决方案是 - 在客户端系统上的主机文件中创建一个条目,用于将 IP 地址映射到主机名 [SVN 服务器名称]
通常,主机文件位于 - c:\Windows\System32\drivers\ etc 文件夹,条目需要采用以下格式
192.168.0.1 SVNServerName
希望这有帮助!
I am really skeptical if there is a way to return from the server what is the correct server URL. The solution for your unknown host name is - create an entry in hosts file on the client system for IP address mapping to the host name [SVN server name]
generally, the hosts file is located in - c:\Windows\System32\drivers\etc folder and the entry needs to be made in the following format
192.168.0.1 SVNServerName
Hope this helps !