一、安装subversion
yum install subversion
二、建立svn仓库目录
mkdir /home/svnrepo
在目录下生成svn相关配置
svnadmin create /home/svnrepo
三、配置访问账号和权限
vim /home/svnrepo/conf/passwd添加test用户,密码是test.123[users]# harry = harryssecret# sally = sallyssecrettest = test.123
vim /home/svnrepo/conf/authz添加test用户对svn 根目录的读写权限[/]test = rw
vim /home/svnrepo/conf/svnserve.confanon-access = noneauth-access = writepassword-db = passwdauthz-db = authzrealm = /home/svnrepo
四、启动svn服务
svnserve -d -r /home/svnrepo
五、测试
SVN服务已经启动,使用客户端测试连接。
客户端连接地址:svn://youip
用户名/密码: test/test.123
测试创建文件夹等操作。
六、停止svn服务
killall svnserve