标签:
1.create a folder:
mkdir /sandbox/svn
2.create svn repository:
svnadmin create /sandbox/svn/project
3.edit passwd:
[users]
Hello=world
Happy=day
Ni=hao
4.edit authz:
[groups]
test = Hello,Happy
[/]
Ni=rw
@test=r
5.edit svnserve
[general]
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz
realm = /sandbox/svn/project
6. svnserve -d -r /sanbox/svn/project
7. auto boot when reboot linux host:
cd /etc/init.d
vim svn:
chmod 755 svn
chkconfig --add svn
chkconfig svn on
chkconfig --list|grep svn :
svn 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Tips:
delete stored passwd:
# rm -rf ~/.subversion/auth
标签:
原文地址:http://www.cnblogs.com/miniren/p/4638800.html