安装步骤
安装包
yum install subversion
创建svn仓库目录
mkdir /opt/svn/repos
svnadmin create /opt/svn/repos
设置svn用户名密码和
cd /opt/svn/repos/conf
vi passwd add
svnusername = svnuserpassword
设置svn用户授权
vi authz
[groups] 下一个[foo/bar] 改成[/] 可以访问根目录
svnusername = wr 可以读写
修改服务配置文件
vi svnserve.conf
anon-access = none
auth-access = write
password-db=passwd
authz-db = authz
realm = /opt/svn/repos
防火墙设置
此处不会设直接关闭了防火墙 firewall closs centos界面关闭的
最后一步开启服务
/etc/init.d/svnserve restart
svnserve -d -r /opt/svn/repos