1、安装subversion
1
|
yum
install
-y subversion mod_dav_svn
|
2、配置数据仓库
1
2
3
4
5
6
7
8
|
mkdir
-p
/var/svn/repo1
svnadmin create
/var/svn/repo1/
cd
/var/svn/repo1/conf
vim svnserve.conf
anon-access =
read
auth-access = write
password-db =
passwd
authz-db = authz
|
3、新增用户
1
2
|
vim
passwd
root = 123456
|
4、设置权限
1
2
3
4
|
vim authz
[repo1:/]
root = rw
* = r
|
5、启动服务
1
2
|
systemctl
enable
svnserve
systemctl start svnserve
|
参考博文:http://www.codeceo.com/article/centos-7-http-svn-server.html
本文转自1321385590 51CTO博客,原文链接:http://blog.51cto.com/linux10000/1742966,如需转载请自行联系原作者