Linux(ubuntu) + SVN配置

1.下载svn安装包并安装

$>apt-getinstallsubversion

2.下载安装apachesvn

$>apt-getinstalllibapache2svn

3.配置svn用户组

$>addgroupsubversion

$>usermod-Gsubversion-awww-data

4.建立仓库目录

$>mkdir-p/home/svn/repository

5.配置apache2及svn服务

1).打开

apache的httpd文件(内容为空)

$>vi/etc/apache2/httpd.conf

添加服务器地址如下:

ServerNamelocalhost

保存并退出

2).编辑

/etc/apache2/mods-available/dav_svn.conf

<Location/svn>

SVNParentPath/home/svn/repository

AuthTypeBasic

AuthName"SubversionRepository"

AuthUserFile/etc/subversion/dav_svn.passwd

AuthzSVNAccessFile/etc/subversion/dav_svn.authz

Requirevalid-user

</Location>

6.创建SVN仓库

1).目录创建

$>cd/home/svn/repository

$>mkdirxxproject

$>chown-Rroot:subversionxxproject

2).数据创建

$>svnadmincreate/home/svn/xxproject

$>chmod-Gg+rwsxxproject

7.svn用户密码创建

$>htpasswd-c/etc/subversion/dav_svn.passwduser_name

$>password:xxxxxxxxxx

8.重启apache2服务

/etc/init.d/apache2restart

输入地址:http://localhost/svn即可访问svn内容了