在CentOS上安裝svn服務器

1、安裝subversion

yum install subversion

2、創建svn倉庫目錄

mkdir /home/svnrepo

在目錄下生成svn相關配置shell

svnadmin create /home/svnrepo

3、配置訪問帳號和權限

vim /home/svnrepo/conf/passwd

添加test用戶,密碼是test.123
[users]
# harry = harryssecret
# sally = sallyssecret
test = test.123
vim /home/svnrepo/conf/authz

添加test用戶對svn 根目錄的讀寫權限
[/]
test = rw
vim /home/svnrepo/conf/svnserve.conf

anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
realm = /home/svnrepo

4、啓動svn服務

svnserve -d -r /home/svnrepo

5、測試

SVN服務已經啓動,使用客戶端測試鏈接。vim

客戶端鏈接地址:svn://youipsvn

用戶名/密碼: test/test.123測試

測試建立文件夾等操做。ui

6、中止svn服務

killall  svnserve
相關文章
相關標籤/搜索