SVN 服务器安装

一.下载服务器端程序进行安装。

二.提供四个批处理命令:

1)创建svn服务的批处理命令:

sc create SVNserve binpath= "D:\Subversion\bin\svnserve.exe --service -r D:\VersionLib\MyProject" displayname= "SVNserve" depend= tcpip start= auto 
sc start SVNserve


2)暂停svn服务的批处理命令:

Net stop SVNserve


3)开启svn服务的批处理命令:

Net start SVNserve

4)删除svn服务的批处理命令:

sc delete SVNserve

三.服务器端配制
1.找到D:\SVNRoot文件下的conf目录,对svnserver.conf,passwd,author进行配置
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
含义是:
未验证用户无任何权限 (如果把none修改为read就是给予读权限)
已验证用户给予写权限 (当然也能读)
密码数据存放到passwd文件中

passwd
[users]
#harry = harryssecret
#sally = sallyssecret
admin=admin111
lvzy=lvzy111
含义是:
增加了 admin这个用户,密码为admin111
增加了lvzy这个用户,密码为lvzy111

Author
[groups]
# harry_and_sally = harry,sally
进行用户组的配制
比如:
Lantian=admin,lvzy
含义是将admin,lvzy加入到组Lantian中去
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
进行文件权限的设置
比如存在libs这个文件,而我只希望 admin一个人可以读写,lvzy有读权限,未授权的无法访问,则可以这样写
[/libs]
admin=rw
lvzy=r
*=none
注:*表示匿名用户
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值