$ svnserve --version svnserve, version 1.14.3 (r1914484) compiled Aug 16 2024, 12:46:27 on x86_64-pc-linux-gnu
Copyright (C) 2023 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software, see http://subversion.apache.org/
The following repository back-end (FS) modules are available:
* fs_fs : Module for working with a plain file (FSFS) repository. * fs_x : Module for working with an experimental (FSX) repository. * fs_base : Module for working with a Berkeley DB repository.
Cyrus SASL authentication is available.
创建版本库目录
1 2
cd#切换到HOME目录 sudomkdir /var/svn
创建版本库
1
sudo svnadmin create /var/svn/name
进入name目录
1 2 3 4 5 6 7 8 9 10
cd /var/svn/name
$ ll total 24 drwxr-xr-x 2 root root 4096 Mar 29 20:14 conf drwxr-sr-x 6 root root 4096 Mar 29 20:14 db -r--r--r-- 1 root root 2 Mar 29 20:14 format drwxr-xr-x 2 root root 4096 Mar 29 20:14 hooks drwxr-xr-x 2 root root 4096 Mar 29 20:14 locks -rw-r--r-- 1 root root 246 Mar 29 20:14 README.txt
修改配置
进入配置文件
1 2 3 4 5 6 7 8
cd conf
$ ll total 20 -rw-r--r-- 1 root root 1080 Mar 29 20:14 authz -rw-r--r-- 1 root root 885 Mar 29 20:14 hooks-env.tmpl -rw-r--r-- 1 root root 309 Mar 29 20:14 passwd -rw-r--r-- 1 root root 4375 Mar 29 20:14 svnserve.conf