SVN服务搭建

应用场景, 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!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值