建立本地svn库

1.  进入到相应的目录下后, 利用 svnadmin create repo #repo 就是版本库


2. 修改 repo/conf/authz

[groups]
g_vip = sarry
g_common = harry

# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe

# [/foo/bar]
# harry = rw
# &joe = r
# * =

# [itory:/baz/fuz]
# @harry_and_sally = rw
# * = r
[/]
@g_vip = rw
sarry = rw
* =

[/d2]
@g_common = rw
harry = rw
* =


             repo/conf/passwd

             [users]
             harry=harryharry
             sarry=sarrysarry

             repo/conf/svnserve.conf

anon-access = none
auth-access = write

password-db = passwd

realm = /home/temp/repo

4.  启动svn服务器 svnserve -d --log-file ./svn.log -r `pwd`

           

5. 远程访问

    svn checkout svn://ip/xxx xxxx --username xxx

你可能感兴趣的:(建立本地svn库)