Win10搭建VisualSvn Server
目录
- [Win10搭建VisualSvn Server](#Win10搭建VisualSvn Server)
-
- [一、下载VisualSvn Server安装包](#一、下载VisualSvn Server安装包)
- [二、安装VisualSvn Server](#二、安装VisualSvn Server)
- [三、配置和使用VisualSVN Server](#三、配置和使用VisualSVN Server)
- 四、添加用户及权限设定方法
- 五、创建目录及配置权限
1、服务端:有集成了Subversion和Apache、安装使用非常简单且免费的VisualSvn Server和Subversion。Windows环境使用VisualSvn Server搭建SVN服务器简单好用。
2、客户端:有收费的VisualSVN和免费的TortoiseSVN,一般使用TortoiseSVN。
一、下载VisualSvn Server安装包
到VisualSVN官网(https://www.visualsvn.com/server/download/)下载VisualSvn Server安装包
安装包:https://download.csdn.net/download/studyingdda/88289543
包含:
VisualSvn Server版本:VisualSVN-Server-4.1.3-x64
TortoiseSVN版本:TortoiseSVN-1.13.1.28686-x64-svn-1.13.0
LanguagePack版本:LanguagePack_1.13.1.28686-x64-zh_CN

二、安装VisualSvn Server
1、双击下载的安装包VisualSVN-Server-4.1.3-x64.msi点击Next

2、勾选"同意",继续点击Next

3、勾选选项1和选项3
选项1:VisualSvn服务器和管理工具安装服务器端组件和所有管理工具。
选项2:管理工具仅安装MMC管理单元、PowerShell模块和Subversion命令行工具来管理安装在其他计算机上的VisualSVN Server实例。(安装部分组件和管理工具)
选项3:将Subversion命令行工具添加到PATH环境变量中更新PATH环境变量以支持对Subversion命令行的直接访问"svnadmin.exe"和"svnadmin.exe"等工具。

4、设置安装路径和仓库路径备份路径以及端口号,点击Next

5、选择第一种认证方式,点击Next

6、点击Install进行安装,安装完毕后勾选启动VisualSvn Server Manager

三、配置和使用VisualSVN Server
1、启动VisualSvn Server Manager后

2、新建仓库可以通过在Repositories上点击右键->选择Create New Repository...或者选择新建-Repository...:

3、选择常规FSFS存储库,点击下一步

4、输入Repository name(仓库名称),可以随意填写,点击下一步

5、点击创建一个空仓库,点击下一步

6、点击Create

7、记住Repository URL后点击Finish

8、仓库的创建基本完成

四、添加用户及权限设定方法
1、首先新建User,右键User->Create User...或者选择新建User...

2、输入用户名、密码,点击OK

3、创建用户完成

4、创建组,右键Groups->Create Group...或者选择新建Group...

5、输入组名,选择添加成员到该组

6、创建组完成

7、分配权限,右键仓库名Duca->Properties...

8、选择组或成员分配权限


五、创建目录及配置权限
1、右键仓库Duca,选择新建->Folder...

2、输入目录名,点击OK

3、给当前目录配置权限,右键目录test点击Properties...

4、选择组或者成员,并配置对此目录的权限

5、网页进入Repository URL输入zhangsan用户名和密码,进入仓库项目复制URL用于Checkout

6、到本地Checkout目录下进行Checkout

7、复制URL,点击OK,并输入用户名和密码

8、成功拉去SVN目录到本地

9、验证zhangsan用户只读权限,zhangsan用户无法上传文件到SVN,权限配置成功
