windows下SVN及其Eclipse插件的安装

本文详细介绍了如何在服务端安装并配置SVN,包括添加系统服务、权限配置和SVN服务文件设置;客户端方面,通过下载并安装TortoiseSVN实现SVN的本地化操作;同时,介绍了如何将SVN插件集成到Eclipse中,方便进行版本控制。文中提供了关键步骤和配置示例,旨在帮助开发者快速上手SVN的管理和使用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

一、服务端


1. 下载Subversion,安装。

2. 在dos窗口,进入安装目录的bin目录,添加系统服务(这样就不用每次都去打开启动窗口),其中E:\SVN为svn库地址,可以自定义:

sc create svnservice binpath= "D:\Program Files\Subversion\bin\svnserve.exe --service -r E:\SVN" displayname= "SVNService" depend= Tcpip start= auto


3. 配置:以上操作将在E盘生成一个svn文件夹,进入E:\svn\conf,有三个文件:authz、passwd、svnserve.conf

1)authz是用户权限配置文件

[/]
tan=rw
*=r
[/delphi]
ygw=rw
nmc=rw
*=r

[/]代表下面的用户名可以操作该版本库下的所有项目,[/delphi]代表下面的用户只可对delphi项目进行读写操作,就以上图解释:tan用户可以对该版本库的所有项目进行读写,而其他用户只能是读,不能进行写的操作,ygw和nmc用户只可以对版本库里的DELPHI项目进行读写,其他用户对这个项目都只能是读而不能写,TAN用户也不可以对DELPHI项目进行写操作,因为在最后面用了*=R,切断了父权限,而*=R不能省去,省去会出错,如果设*= ,则是不能读该项目,就是打开版本库的时候看不到该项目下的文件。
注意:这里的#号是注释的意思。

2)passwd是用户名密码配置文件
passwd文件最终设置完成的样式如下图:

[users]
Tan= 123
ygw= 123
nmc= 123

设置用户名和密码。左边是用户名,右边是该用户名的密码。

3)svnserve.conf是SVN服务文件
snserve.conf最终设置格式如下图:

anon-access = none
auth-access = write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
password-db = passwd
### The authz-db option controls the location of the authorization
### rules for path-based access control.  Unless you specify a path
### starting with a /, the file's location is relative to the conf
### directory.  If you don't specify an authz-db, no path-based access
### control is done.
### Uncomment the line below to use the default authorization file.
authz-db = authz
### This option specifies the authentication realm of the repository.

anon-access = none 表示不允许匿名访问,然后把原文件的这四项的#号去掉就可以了。

二、客户端


下载TortoiseSVN,安装。

三、Eclipse插件


1. 在线安装:Help—>Install New Software—>Add,在Localtion一项输入SVN插件地址http://subclipse.tigris.org/update_1.8.x,确定,选中搜索到的插件进行安装。

2. 或者到http://subclipse.tigris.org下载zip包,并按以上方式,类似进行安装。

3. 同步地址:svn://localhost/svn


参考资料:
http://blog.163.com/yuxiangtong0524@126/blog/static/8008616320103234142644/
http://qiufengstudio.bokee.com/viewdiary.177645880.html

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值