一.下载服务器端程序进行安装。
二.提供四个批处理命令:
1)创建svn服务的批处理命令:
2)暂停svn服务的批处理命令:
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
注:*表示匿名用户
二.提供四个批处理命令:
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
注:*表示匿名用户