首页 > 代码库 > 马士兵SVN.

马士兵SVN.

下载 服务端:VisualSVN Server

客户端:TortoiseSVN

cmd,并cd 到 VisualSVN Server安装目录下的bin目录.

新建库:

1 svnadmin create H:\svn_pro

修改conf目录下的passwd,添加 : user=password,如

1 ### This file is an example password file for svnserve.2 ### Its format is similar to that of svnserve.conf. As shown in the3 ### example below it contains one section labelled [users].4 ### The name and password for each user follow, one account per line.5 6 [users]7 # harry = harryssecret8 # sally = sallyssecret9 juk=juk

修改conf目录下的svnserve.conf,取消注释 : password-db = passwd,如下面的第 28行:

 1 ### This file controls the configuration of the svnserve daemon, if you 2 ### use it to allow access to this repository.  (If you only allow 3 ### access through http: and/or file: URLs, then this file is 4 ### irrelevant.) 5  6 ### Visit http://subversion.apache.org/ for more information. 7  8 [general] 9 ### The anon-access and auth-access options control access to the10 ### repository for unauthenticated (a.k.a. anonymous) users and11 ### authenticated users, respectively.12 ### Valid values are "write", "read", and "none".13 ### Setting the value to "none" prohibits both reading and writing;14 ### "read" allows read-only access, and "write" allows complete 15 ### read/write access to the repository.16 ### The sample settings below are the defaults and specify that anonymous17 ### users have read-only access to the repository, while authenticated18 ### users have read and write access to the repository.19 # anon-access = read20 # auth-access = write21 ### The password-db option controls the location of the password22 ### database file.  Unless you specify a path starting with a /,23 ### the file‘s location is relative to the directory containing24 ### this configuration file.25 ### If SASL is enabled (see below), this file will NOT be used.26 ### Uncomment the line below to use the default password file.27 #取消下面这行的注释,开头不要有空格28 password-db = passwd29 ### The authz-db option controls the location of the authorization30 ### rules for path-based access control.  Unless you specify a path31 ### starting with a /, the file‘s location is relative to the32 ### directory containing this file.  The specified path may be a33 ### repository relative URL (^/) or an absolute file:// URL to a text34 ### file in a Subversion repository.  If you don‘t specify an authz-db,35 ### no path-based access control is done.36 ### Uncomment the line below to use the default authorization file.37 # authz-db = authz38 ### The groups-db option controls the location of the groups file.39 ### Unless you specify a path starting with a /, the file‘s location is40 ### relative to the directory containing this file.  The specified path41 ### may be a repository relative URL (^/) or an absolute file:// URL to a42 ### text file in a Subversion repository.43 # groups-db = groups44 ### This option specifies the authentication realm of the repository.45 ### If two repositories have the same authentication realm, they should46 ### have the same password database, and vice versa.  The default realm47 ### is repository‘s uuid.48 # realm = My First Repository49 ### The force-username-case option causes svnserve to case-normalize50 ### usernames before comparing them against the authorization rules in the51 ### authz-db file configured above.  Valid values are "upper" (to upper-52 ### case the usernames), "lower" (to lowercase the usernames), and53 ### "none" (to compare usernames as-is without case conversion, which54 ### is the default behavior).55 # force-username-case = none56 ### The hooks-env options specifies a path to the hook script environment 57 ### configuration file. This option overrides the per-repository default58 ### and can be used to configure the hook script environment for multiple 59 ### repositories in a single file, if an absolute path is specified.60 ### Unless you specify an absolute path, the file‘s location is relative61 ### to the directory containing this file.62 # hooks-env = hooks-env63 64 [sasl]65 ### This option specifies whether you want to use the Cyrus SASL66 ### library for authentication. Default is false.67 ### This section will be ignored if svnserve is not built with Cyrus68 ### SASL support; to check, run ‘svnserve --version‘ and look for a line69 ### reading ‘Cyrus SASL authentication is available.‘70 # use-sasl = true71 ### These options specify the desired strength of the security layer72 ### that you want SASL to provide. 0 means no encryption, 1 means73 ### integrity-checking only, values larger than 1 are correlated74 ### to the effective key length for encryption (e.g. 128 means 128-bit75 ### encryption). The values below are the defaults.76 # min-encryption = 077 # max-encryption = 256

 

启动SVN服务:

1 svnserve -d -r H:\svn_pro