1. 下载
subversion-1.6.18.tar.bz2
subversion-deps-1.6.18.tar.bz2
2.安装
tar jxvf subversion-1.6.18.tar.bz2
tar jxvf subversion-deps-1.6.18.tar.bz2
注意:两者解压到同一个目录下
3.
cd subversion-1.6.18
./configure --prefix=/usr/local/svn/
make && make install
4. 配置
vi /etc/profile
加入
export PATH=$PATH:/usr/local/svn/bin/
source /etc/profile
5. svn --version
有结果输出则安装成功
6. 创建svn库目录结构
mkdir -p /usr/local/svndata/repos1
svnadmin create /usr/local/svndata/repos1
7. cd /usr/local/svndata/repos1/conf
8.vi svnserve.conf
修改如下:
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
9. vi authz
[/] //根目录权限
zwh = rw
[repos1:/] //repos1库权限
test = rw
10: vi passwd
zwh = 111111
test = 111111
11 . ps -qa| grep svnserve
kill -9 ..
12. svnserve -d -r /usr/local/svndata
svn co svn://localhost:3690/repos1/ 提取repos1下内容
如果svnserve -d -r /usr/local/svndata/repos1
则 svn co svn://localhost:3690/ 提取即可
13. 卸载
rpm -qa subversion rpm -e --nodeps ...