SVN服务端安装

时间:2022-01-21 12:43:45

1、系统版本
centos 6.8

2、安装
yum -y install subversion
(此种安装方式不能指定版本,后续优化)

3、建立版本库根目录
mkdir /home/rice/svndata
svnserve -d -r /home/rice/svndata

4、建立版本库
svnadmin create /home/rice/svndata/test

5、修改/conf/svnserve.conf
注意各个配置的归属域

[general]
anon-access = none
auth-access = write
password-db = passwd

authz-db = authz
#realm = My First Repository
#realm = 192.168.1.19

[sasl]
# use-sasl = true
# min-encryption = 0
# max-encryption = 256

6、修改/conf/passwd

[users]
# harry = harryssecret
# sally = sallyssecret
rice=123456

7、修改/conf/authz

[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average

[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe

# [/foo/bar]
# harry = rw
# &joe = r
# * =

# [repository:/baz/fuz]
# @harry_and_sally = rw
[/]
#* = rw
rice=rw

8、启动svn
svnserve -d -r /home/rice/svndata
对应的关闭命令为 killall svnserve

9、连接
svn://192.168.1.19/test

至此,完毕