svn 无法连接到主机“localhost”
前两天开始在我的本机(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 access
svn://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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您像这样启动 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.
今天早上我在 Windows Vista 上遇到了同样的问题,我想我会分享原因,以防它对发现这个老问题的人有所帮助。
就我而言,Subversion 服务无法启动。系统事件日志中有一个条目
由于某种原因,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
For some reason Subversion had timed out trying to start up.
The solution was as simple as trying to start the service again.