1. Download and install SVN:
Yum Install Subversion
2. Check the installation path, indicating the installation is successful.
RPM-QL Subversion
3. Create SVN directory.
Mkdir-p/var/svn/svnrepos
4. Create a repository.
Svnadmin Create/var/svn/svnrepos
5, the Conf directory of three files:
Authz: Permission control; passwd: account password; Svnserve.conf:SVN service profile
(1) Set account password:
VI/var/svn/svnrepos/conf/passwd
Add a line inside: Account = password, example: chenming=chenming
(2) Set permissions:
VI/var/svn/svnrepos/conf/authz
Add two lines at the end:
[/]
Chenming=rw
Indicates that there is read and write access to the SVN root directory chenming. Specific more detailed configuration can be Baidu SVN permissions settings.
(3) Configuration svnserve.conf:
VI/var/svn/svnrepos/conf/svnserve.conf
Added at the end:
anon-access = Read #匿名用户可读auth-access = Write #授权用户可写password-db = passwd #使用哪个文件作为账号文件authz -db ==/var/svn/svnrepos # Certified space name, repository directory
6. Start SVN
Svnserve-d-R/var/svn/svnrepos
Linux build svn (Centos)