您的位置:首页 > 其它

SVN服务搭建

2011-09-26 10:48 162 查看
应用场景, Windows端搭建SVN服务器, 客户端测试使用Linux.

下载最新的svn服务器:

svn-1.4.5-setup.rar

下载最新的svn客户端:

TortoiseSVN-1.4.5.10425-win32-svn-1.4.5.rar

下载配置svn服务成window service自动运行的工具:

SVNService.rar

安装上述软件.

注意: 解压后的SVNService.exe 一定要放到 ?:\?\Subversion\bin的目录下. ?"\?\ 你svn服务器安装目录.

右键点击 选择 "TortoiseSVN" >> "Create Repository here.."创建工程存放目录.

配置conf文件夹下的passwd 文件与 svnserve.conf文件.

修改svnserve.conf 文件:

[general]

### These options control access to the repository for unauthenticated

### and authenticated users. Valid values are "write", "read",

### and "none". The sample settings below are the defaults.

anon-access = read

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

去除文件中黑体部分的注释.

在passwd文件中加入你需要设置的密码.

[users]

harry = harryssecret

sally = sallyssecret

zxn = admin

这是这些完毕, 在命令行中运行 SVNService -install -d -r d:\SVN\Projects\test

在 我的电脑 右击 管理与服务 选项 找到 SVNService, 启动服务.

至此SVN 配置完成.

在Linux端查看配置的SVN服务, svn list svn://192.168.16.22/test

svn checkout svn://192.168.16.22/test 测试OK!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: