apache 搭建subversion服务器,还需要安装apache httpd服务器吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2604485/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
To set up a subversion server, do we need to install apache httpd server too?
提问by Chris Thornton
http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html
http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html
I am following this as a guide to install subversion. The tutorial at the time dealt with version 1.4.6 but the latest version is different. Is this tutorial valid still?
我遵循此作为安装 subversion 的指南。当时的教程是1.4.6版本,但最新版本不同。这个教程还有效吗?
also there is no mention about installing the apache server.
也没有提到安装 apache 服务器。
EDIT: I want to install on windows. I meant apache 2.2 httpd server not tomcat
编辑:我想安装在 Windows 上。我的意思是 apache 2.2 httpd 服务器不是 tomcat
回答by Chris Thornton
If this is a windows server, then you will probably have an easier time if you install Visual SVN Server. http://www.visualsvn.com/server/It's a one-shot installer for everything you need.
如果这是 Windows 服务器,那么安装 Visual SVN 服务器可能会更轻松。 http://www.visualsvn.com/server/这是一款一次性安装程序,可满足您的一切需求。
回答by jayshao
The most typical server setup is to install with Apache Http Server, not Tomcat.
最典型的服务器设置是安装 Apache Http Server,而不是 Tomcat。
In my experience, this is mucheasier on Linux than Windows. If you're going to install on windows, you're best bet is probably the Collabnet distribution
根据我的经验,这是多大的Linux比Windows更容易。如果您要在 Windows 上安装,最好的选择可能是Collabnet 发行版
回答by ThatBlairGuy
It depends on your goals. If you need the repository to be accessible via http:// or https:// (commonly accessible through firewalls) then you'll need Apache. If you're OK only accessing the repository via the svn:// protocol, then Apache is strictly optional.
这取决于你的目标。如果您需要通过 http:// 或 https://(通常可通过防火墙访问)访问存储库,那么您将需要 Apache。如果您只能通过 svn:// 协议访问存储库,那么 Apache 是严格可选的。
You might also want to take a look at the Subversion book. It's a good resource in general, and the section on choosing a server configurationcovers this far better and in more detail than I can.
您可能还想看看Subversion 书籍。总的来说,这是一个很好的资源,关于选择服务器配置的部分比我所能涵盖的要好得多,也更详细。
And as others have mentioned, if you decide you do need Apache, VisualSVN servermakes it drop dead easy for a Windows setup.
正如其他人所提到的,如果您决定确实需要 Apache,VisualSVN 服务器可以让 Windows 设置变得容易。
回答by Alex Jasmin
The tutorial your question links to covers installing svnservewhich uses the dedicated svn:protocol.
您的问题链接的教程涵盖了svnserve使用专用svn:协议的安装。
SVN can also be installed using mod_dav_svn which is an Apache httpdmodule and works over HTTP.
SVN 也可以使用 mod_dav_svn 安装,mod_dav_svn 是一个Apache httpd模块并通过 HTTP 工作。
Apache Tomcatis a Java webserver and has nothing to do with SVN.
Apache Tomcat是一个 Java 网络服务器,与 SVN 无关。
回答by nobody
No, the Subversion plugin for Apache is a WebDAV module. No Java or Tomcat involved.
不,Apache 的 Subversion 插件是一个 WebDAV 模块。不涉及 Java 或 Tomcat。
回答by shinkou
You should be able to do it with:
你应该能够做到:
svnserve -d
回答by Jim T
The tutorial is still valid, nothing has changed structurally between 1.4 & 1.6.
本教程仍然有效,1.4 和 1.6 之间的结构没有任何变化。
The tutorial installs so that you connect to the repository using svn://
安装教程,以便您使用 svn:// 连接到存储库
It's when you want to connect using http:// that you need to install apache.
当您想使用 http:// 连接时,您需要安装 apache。
The tutorial is no help there, see the other answers, particularly the ones about installing visualsvn.
该教程在那里没有帮助,请参阅其他答案,尤其是有关安装 visualsvn 的答案。
回答by mamcx
You only need Apache (however, beware of the version: Check if subversion match the apache version).
您只需要 Apache(但是,请注意版本:检查 subversion 是否与 apache 版本匹配)。
You can follow the "old" tutorial and will work. You can try to use the all-ready package as suggested or use something like http://www.apachefriends.org/en/xampp.htmlto easy install & management of subversion.
您可以按照“旧”教程进行操作。您可以尝试使用建议的全准备包或使用类似http://www.apachefriends.org/en/xampp.html 的内容来轻松安装和管理 subversion。
The first time will be a bit hard if you have not experience with apache, but the tutorial in the help is easy to follow (is better/easier the instructions of TortoiseSVN than the ones of Subversion)
如果你没有使用 apache 的经验,第一次会有点困难,但帮助中的教程很容易理解(TortoiseSVN 的说明比 Subversion 的说明更好/更容易)

