1. 程式人生 > >最簡單的SVN搭建

最簡單的SVN搭建

安裝
#yum install subversion

建立倉庫
#svnadmin create /r2/SVN/reposdata/shenyang


配置
#mkdir /r2/SVN/conf
#vim /r2/SVN/conf/auth
[groups]
gadmin = sync,admin
[/]
@gadmin = rw


#vim /r2/SVN/conf/passwd
[users]
admin = 2015syd!
sync = sync


#vim /r2/SVN/reposdata/shenyang/conf/svnserve.conf
anon-access = none
auth-access = write
password-db = ../../conf/passwd
authz-db = ../../conf/authz


啟動
#svnserve -d -r /r2/SVN/reposdata/

檢索地址

win:

svn://172.18.78.167/shenyang

centos:

/usr/bin/svn co --username=sync --password sync svn://172.18.78.167/shenyang /data/shenyang