svn搭建

yum install subversion
mkdir /svn
svnadmin create /svn/test/
vim svnserve.conf 
[general]
anon-access = read         ##注意前边不要有空格,要顶齐
auth-access = write         ##注意前边不要有空格,要顶齐
password-db = passwd        ##注意前边不要有空格,要顶齐
authz-db = authz        ##注意前边不要有空格,要顶齐
vim passwd 
[users]
# harry = harryssecret
# sally = sallyssecret
lqb = lqb123456
test1 = 123456
test2 = 654321

vim authz  
[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
# [/foo/bar]
# harry = rw
# &joe = r
# * =
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
admin = lqb,test2
user = test1
[/svn/test/]
@admin = rw 
@user = r

svnserve -d -r /svn/

 

你可能感兴趣的:(操作工具激活教程)