1,yum 安装svn
yum install subversion
2,创建svn目录,一个仓库的总目录
mkdir /svnRepo
3,创建版本仓库
cd /svnRepo
svnadmin create /svnRepo/carpet
svnadmin create /svnRepo/c2c
上面就创建了两个仓库,分别为carpet和c2c
4,如果只是想做单一仓库的话
以c2c仓库为例:
只需要修改对应仓库的conf下的三个文件即可
分别是:passwd,authz,svnserve.conf
passwd
其中:passwd是设置用户密码的,格式为 账号 = 密码 ,需要注意的是,行首不能有空格
authz
authz是配置相关的权限