SVN:远程访问不起作用

发布于 2024-12-28 06:24:13 字数 530 浏览 2 评论 0原文

我已经在我的电脑上安装了 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 技术交流群。

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

发布评论

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

评论(1

客…行舟 2025-01-04 06:24:13

等等...您可以通过 http:// 访问您的存储库吗?为什么不让其他人使用 http:// 访问存储库?

不要对路由器进行任何操作。不要搞乱端口。 Apache httpd 正在通过端口 80 为您的存储库提供良好的服务。告诉您的用户只需通过 http:///svn/repos 访问您的存储库。这就是全部内容了。

svn:// 是一个与 http:// 完全不同的协议。端口 3690 恰好是 svn:// 的默认端口,但这并不意味着如果您将 http:// 协议重新路由到那里,一切都会正常。

大多数时候,第一次使用 Subversion 的人会设置 svnserve 服务器而不是 Apache httpd,因为它比使用 Apache http 更容易。以下是如何设置存储库以使用 svn://

$ svnadmin create my_repos        #
$ vi my_repos/conf/svnserve.conf  #Need to denop 'password-db=passwd' line
$ vi my_repos/conf/passwd         #Need to setup user accounts
$ svnserve -r my_repos -d

就是这样。现在,您的用户可以通过 svn://访问存储库。

虽然 svnserve 比 Apache 更简单、更容易(并且更快),但使用 Apache httpd 而不是 svnserve 有很多原因:

  • 端口 80 可能不会被网络阻止,而端口 3690 可能被阻止
  • 您可以让 Apache httpd 使用 LDAP 进行身份验证(这也可以允许 Windows Active Directory 身份验证)
  • Apache httpd 可以为多个存储库提供服务,而 svnserve 只能为端口 3690 上的单个存储库提供服务。

Wait... You can access your repository via http://? Why not let others access the repository using http://?

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 than http://. Port 3690 just happens to be the default port of svn://, but that doesn't mean if you reroute your http:// 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 use svn://:

$ svnadmin create my_repos        #
$ vi my_repos/conf/svnserve.conf  #Need to denop 'password-db=passwd' line
$ vi my_repos/conf/passwd         #Need to setup user accounts
$ svnserve -r my_repos -d

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:

  • Port 80 is likely not blocked by network while port 3690 maybe blocked
  • You can let Apache httpd use LDAP for authentication (which can also allow Windows Active Directory authentication)
  • Apache httpd can service multiple repositories while svnserve can only service a single repository on port 3690.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文