centos svn服务器安装

1.安装必须的软件

yum install httpd httpd-devel subversion mod_dav_svn mod_auth_mysql

2.创建代码库

mkdir -p /root/svn/repositories

svnadmin create /root/svn/repositories

3.用户配置

cd /root/svn/repositories/conf

vi passwd

[users]
# harry = harryssecret
# sally = sallyssecret
hjyang=123456
 
4.控制权限配置
 
vi  authz
 
[/]
hjyang=rw
 
5.服务配置
 
vi svnserve.conf
 
[general]
anon-access=none
auth-access=write
password-db=passwd
authz-db=authz
realm=/root/svn/repositories
 
6.启动
 
svnserve -d -r /opt/svn/repositories
 
7.停止
 
killall svnserve
 
(注意关闭或者配置防火墙)
 
原文地址:https://www.cnblogs.com/hjyang2012/p/5200023.html