SVN:远程访问不起作用
我已经在我的电脑上安装了 subversion 和 apache。我可以使用 followinf url 访问我的存储库
http://localhost/svn/repos/
现在我希望我的组中的其他成员能够访问我放入存储库中的项目文件。因为这是我第一次使用 svn,所以我寻找解决方案,我想我有点迷失了。
我在路由器中阅读了有关端口转发的内容,因此我打开了路由器界面。我转到路由器配置的 NAT/PAT 部分,并添加了一条具有以下特征的新规则:
Application: svn
External port:3690
Internal port:80
protocol : TCP
equipment: myPC
并选中了“活动”选项。但我想我错过了一些东西。 我在一篇文章中读到,要验证远程访问是否正常工作,我必须转到“
svn://83.200.108.71
虽然它不起作用”。 “无法连接..” 有人可以帮助我吗?
I've installed subversion and apache on my pc. I can access to my repository using followinf url
http://localhost/svn/repos/
Now I want other members of my group to access the project files I've put in my repository. As it's my first time using svn I looked for the solutions and I think I'm a bit lost.
I read about port forwarding in my router so I opened my router interface. I went to NAT/PAT section of my router configuration and added a new rule with following caracteristics:
Application: svn
External port:3690
Internal port:80
protocol : TCP
equipment: myPC
And Checked the option "Active". But I think I'm missing something.
I read in an article that to verify if the remote access is working i have to go to
svn://83.200.108.71
While it doesn't work. "unable to connect.."
Can someone please help me .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
等等...您可以通过
http://
访问您的存储库吗?为什么不让其他人使用http://
访问存储库?不要对路由器进行任何操作。不要搞乱端口。 Apache httpd 正在通过端口 80 为您的存储库提供良好的服务。告诉您的用户只需通过
http:///svn/repos
访问您的存储库。这就是全部内容了。svn://
是一个与http://
完全不同的协议。端口 3690 恰好是 svn:// 的默认端口,但这并不意味着如果您将http:// 协议重新路由到那里,一切都会正常。
大多数时候,第一次使用 Subversion 的人会设置
svnserve
服务器而不是 Apache httpd,因为它比使用 Apache http 更容易。以下是如何设置存储库以使用svn://
:就是这样。现在,您的用户可以通过 svn://访问存储库。
虽然 svnserve 比 Apache 更简单、更容易(并且更快),但使用 Apache httpd 而不是 svnserve 有很多原因:
Wait... You can access your repository via
http://
? Why not let others access the repository usinghttp://
?Don't do anything with your router. Don't muck with ports. Apache httpd is serving your repository just fine off of Port 80. Tell your users to simply access your repository via
http://<machineName>/svn/repos
. That's all there is to it.svn://
is a completely different protocol thanhttp://
. Port 3690 just happens to be the default port ofsvn://
, but that doesn't mean if you reroute yourhttp://
protocol there, everything will work.Most of the time, people who first use Subversion set up the
svnserve
server instead of Apache httpd because it's easier than using Apache http. Here's how you setup a repository to usesvn://
:And that's it. Now your users can access the repository via
svn://<machineName>
.Although svnserve is simpler and easier than Apache (and faster), there are many reasons to use Apache httpd over svnserve:
svnserve
can only service a single repository on port 3690.