Linux下安装subversion服务器的简单配置
操作系统:CENTOS7
yum install subversion -y
yum install mod_dav_svn -y #可选
mkdir /svndata
svnadmin create /svndata/
此时再进入目录会产生如下文件及文件夹
[[email protected] svndata]# ls
conf db format hooks locks README.txt
[[email protected] svndata]# pwd
/svndata
修改配置如下改三个文件:
[[email protected] svndata]# cat /svndata/conf/svnserve.conf | grep -v ^#
[general]
anon-access = read
auth-access = write
password-db = passwd
realm = /svndata
[sasl]
[[email protected] conf]# pwd
/svndata/conf
[[email protected] conf]# cat authz | grep -v ^#
[aliases]
[groups]
[/]
test1=rw
*=
[[email protected] conf]# pwd
/svndata/conf
[[email protected] conf]# cat passwd | grep -v ^#
[users]
test1=pwd123456
重启服务:
killall svnserve
svnserve -d -r /svndata/
客户端连接测试:
因为设置了读写的权限,可以正常地修改文件