标签:des style blog http color strong
下载 服务端: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 the 3 ### 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 = harryssecret 8 # sally = sallyssecret 9 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 the 10 ### repository for unauthenticated (a.k.a. anonymous) users and 11 ### 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 anonymous 17 ### users have read-only access to the repository, while authenticated 18 ### users have read and write access to the repository. 19 # anon-access = read 20 # auth-access = write 21 ### The password-db option controls the location of the password 22 ### database file. Unless you specify a path starting with a /, 23 ### the file‘s location is relative to the directory containing 24 ### 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 = passwd 29 ### The authz-db option controls the location of the authorization 30 ### rules for path-based access control. Unless you specify a path 31 ### starting with a /, the file‘s location is relative to the 32 ### directory containing this file. The specified path may be a 33 ### repository relative URL (^/) or an absolute file:// URL to a text 34 ### 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 = authz 38 ### The groups-db option controls the location of the groups file. 39 ### Unless you specify a path starting with a /, the file‘s location is 40 ### relative to the directory containing this file. The specified path 41 ### may be a repository relative URL (^/) or an absolute file:// URL to a 42 ### text file in a Subversion repository. 43 # groups-db = groups 44 ### This option specifies the authentication realm of the repository. 45 ### If two repositories have the same authentication realm, they should 46 ### have the same password database, and vice versa. The default realm 47 ### is repository‘s uuid. 48 # realm = My First Repository 49 ### The force-username-case option causes svnserve to case-normalize 50 ### usernames before comparing them against the authorization rules in the 51 ### authz-db file configured above. Valid values are "upper" (to upper- 52 ### case the usernames), "lower" (to lowercase the usernames), and 53 ### "none" (to compare usernames as-is without case conversion, which 54 ### is the default behavior). 55 # force-username-case = none 56 ### The hooks-env options specifies a path to the hook script environment 57 ### configuration file. This option overrides the per-repository default 58 ### 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 relative 61 ### to the directory containing this file. 62 # hooks-env = hooks-env 63 64 [sasl] 65 ### This option specifies whether you want to use the Cyrus SASL 66 ### library for authentication. Default is false. 67 ### This section will be ignored if svnserve is not built with Cyrus 68 ### SASL support; to check, run ‘svnserve --version‘ and look for a line 69 ### reading ‘Cyrus SASL authentication is available.‘ 70 # use-sasl = true 71 ### These options specify the desired strength of the security layer 72 ### that you want SASL to provide. 0 means no encryption, 1 means 73 ### integrity-checking only, values larger than 1 are correlated 74 ### to the effective key length for encryption (e.g. 128 means 128-bit 75 ### encryption). The values below are the defaults. 76 # min-encryption = 0 77 # max-encryption = 256
启动SVN服务:
1 svnserve -d -r H:\svn_pro
标签:des style blog http color strong
原文地址:http://www.cnblogs.com/listened/p/3853834.html