您的位置:首页 > 其它

建立本地svn库

2016-07-27 22:04 176 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: