建立
svnserve
服务器及配置权限
1
建立svnserve服务器
1)
启动服务器程序-svnserve
A:-r
直接指定到版本库
(
称之为单库
svnserve
方式
)
比如,有一个库 project1 ,位于 D:/svn/project1
比如,有一个库 project1 ,位于 D:/svn/project1
svnserve -d -r D:/svn/project1
此种方式建立的版本库,访问方式为:
Svn://127.0.0.1/
B:-r
指定到版本库的上级目录
(
称之为多库
svnserve
方式
)
同样,有一个库 project1 ,位于 D:/svn/project1
如果使用以下命令启动 svnserve
同样,有一个库 project1 ,位于 D:/svn/project1
如果使用以下命令启动 svnserve
svnserve -d -r D:/svn
此种方式建立的版本库,访问方式为:
Svn://127.0.0.1/project1/
2
建立权限
1)
svnserve.conf
文件结构分析
每个建立的版本库下,都存在
/conf/svnserve.conf
文件,此文件就是用于配置此版本库的访问权限。
在版本库权限配置文件
svnserve.conf
中,以#开头的行为注释。
建立版本库后,默认文件内容为:
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository. (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)
### Visit http://subversion.tigris.org/ for more information.
[general]
### These options contro