yum install subversion
mkdir /home/svnrepo
在目錄下生成svn相關配置shell
svnadmin create /home/svnrepo
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
svnserve -d -r /home/svnrepo
SVN服務已經啓動,使用客戶端測試鏈接。vim
客戶端鏈接地址:svn://youipsvn
用戶名/密碼: test/test.123測試
測試建立文件夾等操做。ui
killall svnserve