svn 无法连接到主机“localhost”

发布于 2024-08-06 08:01:24 字数 737 浏览 4 评论 0原文

前两天开始在我的本机(win)上搭建SVN环境。

我前两天安装了subversion + Tortoise SVN,并创建了第一个测试项目。在浏览器中打开链接 svn://localhost 会显示存储库浏览器,其中包含我的测试项目,其中包含文件夹标签、分支和主干(这很棒)。

昨晚我也决定安装 Trac。安装python 2.5后,我创建了一个新环境来测试它。当然,第一次做,我犯了一些错误,不得不重做整个过程,但我最终成功地创建了那个测试环境。

好吧,在弄清楚应该如何保留环境之后,我创建了另一个环境,当然还有它的 svn 存储库并同步它们。此外,访问 http://locallhost:8000/my_project_path 工作正常。但是现在,当我尝试从存储库浏览器窗口访问 svn://localhost` 时,我得到的只是

Can't connect to host localhost: 
No connection could be made because the target machine actively refused it

我尝试使用此命令启动服务器

svnserve --daemon --root "path/to/my/repo

但执行后我没有得到的 消息任何响应,我都必须按 ctrl+break 才能输入另一个命令。

我真的不知道问题是什么,这是第一次安装它们并尝试让它们工作。

任何帮助将不胜感激。

I started two days ago to set up an SVN environment on my local machine (win).

I installed subversion + Tortoise SVN two days ago and created the first test project. Opening the link svn://localhost in my browser showed the Repository Browser with my test project having the folders tags, branches and trunk inside (which was great).

Last night I also decided to install Trac. After installing python 2.5, I've created a new environment to test it. Of course, doing it for the first time, I made some mistakes and had to redo the whole process, but I finally succeeded creating that test environment.

Well, after figuring out how I should keep the environments, I created another one and of course the svn repo for it and synchronized them. Also, accessing http://locallhost:8000/my_project_path works fine. But now, when I try to accesssvn://localhost` from the Repository Browser window, all I get is the message

Can't connect to host localhost: 
No connection could be made because the target machine actively refused it

I've tried to start the server with this command

svnserve --daemon --root "path/to/my/repo

but after executing it I don't get any response and I have to ctrl+break to be able to enter another command.

I really don't know what the problem it, this being the first time installing them and trying to make them work.

Any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

银河中√捞星星 2024-08-13 08:01:24

如果您像这样启动 Subversion 服务器,那么出现空白窗口是正常的,并且服务器可能已启动并正在运行。仅当出现错误时,您才会在窗口中看到某些内容。然后,您应该尝试使用 Tortoise Repo 浏览器连接到 svn://localhost/,然后就可以开始了。

您可以像这样在服务器窗口保持打开状态的情况下运行它,但如果您要经常使用服务器,通常您将安装为服务。

If you start the Subversion server like this then having a blank window is normal, and the server is probably up and running. You only see something in the window if there is an error. You should then try the Tortoise Repo Browser to connect to svn://localhost/ and you should be good to go.

You can run it like this with the server window just left open, but normally you'll install as a service if you're going to use the server a lot.

等你爱我 2024-08-13 08:01:24

今天早上我在 Windows Vista 上遇到了同样的问题,我想我会分享原因,以防它对发现这个老问题的人有所帮助。

就我而言,Subversion 服务无法启动。系统事件日志中有一个条目

已达到超时(30000
毫秒),同时等待
Subversion 存储库 (UNC) 服务
连接。

由于某种原因,Subversion 在尝试启动时超时。

解决方案就像尝试再次启动服务一样简单。

I had the same problem on Windows Vista this morning and thought I would share the cause in case it helps anyone that finds this old question.

In my case, the Subversion service failed to start. There was an entry in the System event log

A timeout was reached (30000
milliseconds) while waiting for the
Subversion Repository (UNC) service to
connect.

For some reason Subversion had timed out trying to start up.

The solution was as simple as trying to start the service again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文