本文导读
- 了解《SVN (Subversion ) 理论介绍》之后,本文介绍如何在 Windows 系统上安装 SVN 服务端
下载 SVN
- Apache 组织自己维护更新的只是 Subversion 的源码,各个版本的源码包的下载地址:http://subversion.apache.org/download/
- Subversion 源码是使用 C 语言开发的,安装的 SVN 需要的是它的 二进制文件包。
-
Subversion 在不同平台下的二进制安装包是由不同组织构建实现的,而Apache软件基金会自己并不维护,但是它会提供第三方链接,官网地址:http://subversion.apache.org/packages.html
- 如上所示,提供了各种系统的 SVN 安装方式,各种 Linux 系统,如果是安装在 Linux 系统上,则只需要根据说明,直接安装即可
- 本文以 Windows 上安装为例,如下所示,都是第三方提供的各种不同的 SVN 软件,有一些是需要收费的
- 其中的 VisualSVN 是免费的,而且用的人也比较多,它的底层也是使用的 Subversion,操作上偏向于可视化页面操作,而 SVN 偏向于命令行操作。
- 其中的 TortoiseSVN 是操作 SVN 服务器的客户端,可以自行下载。
- 如果对 VisualSVN 有兴趣的可以自行了解,点击之后,可以看到下图,点击右侧相应的版本即可下载,本文不再过多描述,重点还是 SVN。
- 下载 SVN 可以从 开源软件集中式场所 sourceforge 官网下载,地址:https://sourceforge.net/projects/win32svn/
安装 SVN
- 安装步骤和普通的软件安装没有太大区别,只将其中的注意点进行截图说明,如下所示,选择SVN 包含的 apache 服务端访问模块,默认即可。
- 设置安装目录,作为一个合格的程序员,软件安装路径不要有空格,不要含中文,之后点击下一步,然后安装即可。
- 安装完成后,svn 会自动配置 path 系统环境变量,将 svn 的 bin 目录添加到进去,这样以后可以在任意目录下运行 svn 命令行了
- 在 cmd 命令行中使用 " svn --version" 可以验证是否安装成功,如下所示,能看到版本信息,则表示安装成功
C:\Users\Administrator.SC-201707281232>svn --version
svn, version 1.9.5 (r1770682)
compiled Nov 26 2016, 14:22:31 on x86-microsoft-windows
Copyright (C) 2016 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- using serf 1.3.9 (compiled with 1.3.9)
- handles 'http' scheme
- handles 'https' scheme
The following authentication credential caches are available:
* Wincrypt cache in C:\Users\Administrator.SC-201707281232\AppData\Roaming\Subversion
C:\Users\Administrator.SC-201707281232>