一、VisualSVN-Server 的安装与基本配置
1、VisualSVN-Server 下载地址:https://www.visualsvn.com/
2、安装步骤
3、基本配置
3.1、首先配置groups,添加两个组,一个admin组,一个guest组
3.2、创建用户
3.3、为用户分配组
4、创建一个新的库(Repository)
4.1、创建
4.2、选择FSFS类型
4.3、创建库的名字
4.4、选择是空库,还是之前库的分支
4.5、选择自定义权限
4.6、为不同的组分配权限
4.7、创建完成,显示库的相关信息
一、VisualSVN-Server 的安装与基本配置
1、VisualSVN-Server 下载地址:https://www.visualsvn.com/
2.安装步骤
![c5de1407e089c280f094341e32556e7c.png](https://img-blog.csdnimg.cn/img_convert/c5de1407e089c280f094341e32556e7c.png)
![8a6ad3d5caaa317408f00bd8e1be3887.png](https://img-blog.csdnimg.cn/img_convert/8a6ad3d5caaa317408f00bd8e1be3887.png)
![ac60c5854b1837e3c38a33c8db20290b.png](https://img-blog.csdnimg.cn/img_convert/ac60c5854b1837e3c38a33c8db20290b.png)
![092ee2f5e31c3f6266a5988386cdfe2b.png](https://img-blog.csdnimg.cn/img_convert/092ee2f5e31c3f6266a5988386cdfe2b.png)
![219496ea4c6998c7d3f5694f255c9198.png](https://img-blog.csdnimg.cn/img_convert/219496ea4c6998c7d3f5694f255c9198.png)
![f8bad29437b32183a66f2f7ccd90ce0b.png](https://img-blog.csdnimg.cn/img_convert/f8bad29437b32183a66f2f7ccd90ce0b.png)
![606a75211703983b6b285623be62d3e0.png](https://img-blog.csdnimg.cn/img_convert/606a75211703983b6b285623be62d3e0.png)
![49739c7fc36b2aa4bf755ae9c7942ba2.png](https://img-blog.csdnimg.cn/img_convert/49739c7fc36b2aa4bf755ae9c7942ba2.png)
![4b069f9fed0428d95a886a430e52a7ce.png](https://img-blog.csdnimg.cn/img_convert/4b069f9fed0428d95a886a430e52a7ce.png)
三、基本配置
3.1、首先配置groups,添加两个组,一个admin组,一个guest组
![0b1434221446a73e68faf251d2ef60ac.png](https://img-blog.csdnimg.cn/img_convert/0b1434221446a73e68faf251d2ef60ac.png)
![f71d4fba060b07cf46e86a99d36a5476.png](https://img-blog.csdnimg.cn/img_convert/f71d4fba060b07cf46e86a99d36a5476.png)
![ce77f1b7136ee30abd16f1b2a938397f.png](https://img-blog.csdnimg.cn/img_convert/ce77f1b7136ee30abd16f1b2a938397f.png)
3.2、创建用户
![45bd2e6a2e8cbbf2c163bdf7e3cb6c10.png](https://img-blog.csdnimg.cn/img_convert/45bd2e6a2e8cbbf2c163bdf7e3cb6c10.png)
![1f0ee542f6ebb46ccbf2c3d4cb9c82ad.png](https://img-blog.csdnimg.cn/img_convert/1f0ee542f6ebb46ccbf2c3d4cb9c82ad.png)
![9b778e7f12e92de431fd16adc77ed38c.png](https://img-blog.csdnimg.cn/img_convert/9b778e7f12e92de431fd16adc77ed38c.png)
3.3、为用户分配组
![37c0fcb085df7db7c6d3cea1526eeee8.png](https://img-blog.csdnimg.cn/img_convert/37c0fcb085df7db7c6d3cea1526eeee8.png)
![7c81a5c2315a3bab4b3c689ac01e6f29.png](https://img-blog.csdnimg.cn/img_convert/7c81a5c2315a3bab4b3c689ac01e6f29.png)
![634b56ee30538fa169e6070f0d9f294a.png](https://img-blog.csdnimg.cn/img_convert/634b56ee30538fa169e6070f0d9f294a.png)
如果你想将guest_1用户分配入guest组,和上面一样的步骤
![70c9d376903448822b1761041d78cb8e.png](https://img-blog.csdnimg.cn/img_convert/70c9d376903448822b1761041d78cb8e.png)
4、创建一个新的库(Repository)
4.1、创建
![777c2b19661068b3d6719482a5a74493.png](https://img-blog.csdnimg.cn/img_convert/777c2b19661068b3d6719482a5a74493.png)
4.2、选择FSFS类型
![fbbbddec2ea644883f8080d1db397e94.png](https://img-blog.csdnimg.cn/img_convert/fbbbddec2ea644883f8080d1db397e94.png)
4.3、创建库的名字
![bb8c869363e856d9e04deb4d1f535d40.png](https://img-blog.csdnimg.cn/img_convert/bb8c869363e856d9e04deb4d1f535d40.png)
4.4、选择是空库,还是之前库的分支
![9d61f50c8e7e23fcddcda98d5eff72e7.png](https://img-blog.csdnimg.cn/img_convert/9d61f50c8e7e23fcddcda98d5eff72e7.png)
4.5、选择自定义权限
![8bf866c780bee2adc0b1f04348d076d0.png](https://img-blog.csdnimg.cn/img_convert/8bf866c780bee2adc0b1f04348d076d0.png)
4.6、为不同的组分配权限
![56b71ee7ceac97576da6dca0aa2c0fbc.png](https://img-blog.csdnimg.cn/img_convert/56b71ee7ceac97576da6dca0aa2c0fbc.png)
![9ac17c8060bdaddc3f43fea663b6893c.png](https://img-blog.csdnimg.cn/img_convert/9ac17c8060bdaddc3f43fea663b6893c.png)
这样admin组的所有用户,都有了 读/写 bbs_demo库中文件的权限
![f817f43afe102d21ea69f28d0652a9b7.png](https://img-blog.csdnimg.cn/img_convert/f817f43afe102d21ea69f28d0652a9b7.png)
同样,guest组中也给上读/写权限。注意:我这里的分组只是为了后面的测试区分,真正的应用中,guest用户组不应该有写的权限
4.7、创建完成,显示库的相关信息
![a0b5e5979acc8aeeb4ec930daf29c16c.png](https://img-blog.csdnimg.cn/img_convert/a0b5e5979acc8aeeb4ec930daf29c16c.png)
点击这个URL地址,我们已经可以通过网络访问库了
![fa8b493c0aa240fc3918b855d4102b24.png](https://img-blog.csdnimg.cn/img_convert/fa8b493c0aa240fc3918b855d4102b24.png)
![fee83c3585d4648955e50df29cfdab49.png](https://img-blog.csdnimg.cn/img_convert/fee83c3585d4648955e50df29cfdab49.png)
注意:由于这里是在我本机上测试,这里的URL地址中yingside3f02
其实就是指本机,所以,这里可以使用IP地址替代,比如可以改为127.0.0.1,或者localhost。由于这里生成的连接是https的,使用chrome浏览器访问可能有警告,无所谓,跳过就可以了
![6ae19ba45160bfff23c0f96db69fbf2e.png](https://img-blog.csdnimg.cn/img_convert/6ae19ba45160bfff23c0f96db69fbf2e.png)
以后,在客户端访问的时候,也就是这个地址了,当然如果是局域网,改成相应的IP地址就ok了 这样,一个空的服务器端目录就建立好了。建议重新启动一下计算机
二、TortoiseSVN的安装与配置
1、TortoiseSVN 下载地址:https://tortoisesvn.net/downloads.html
2、TortoiseSVN安装
![ebdc2c9c826c36d7f321fa4a358b0f5a.png](https://img-blog.csdnimg.cn/img_convert/ebdc2c9c826c36d7f321fa4a358b0f5a.png)
![9670cf785b9c77badff29dd060e46146.png](https://img-blog.csdnimg.cn/img_convert/9670cf785b9c77badff29dd060e46146.png)
![da36367e89f3f4a96931e4d690b92ac0.png](https://img-blog.csdnimg.cn/img_convert/da36367e89f3f4a96931e4d690b92ac0.png)
![b54d5e1fbcb766247a856382bc5faf7f.png](https://img-blog.csdnimg.cn/img_convert/b54d5e1fbcb766247a856382bc5faf7f.png)
![05051650052205a5d58bea0f1e6ba699.png](https://img-blog.csdnimg.cn/img_convert/05051650052205a5d58bea0f1e6ba699.png)
安装完成之后强烈建议重新启动计算机,这样SVN的图标提醒才会起作用