The installation steps are as follows:
1. Yum Install Subversion
2. Enter RPM-QL subversion to view the installation location, such as:
You can see that SVN generated a few binaries in the bin directory.
Re -Enter/usr/bin/svnversion--version to see the SVN version, which means the SVN installation was successful, such as:
3. Create SVN repository DirectoryMkdir-p/var/svn/svnrepos
4. Create a version librarySvnadmin Create/var/svn/svnreposAfter executing this command, the following files are generated under the/var/svn/svnrepos directory
5. Enter the Conf directory (the SVN repository configuration file)
Authz file is a permission control filepasswd is the account password fileSvnserve.conf SVN service configuration file
6. Set Account passwordVI passwdAdd users and passwords to the [users] block in the format: Account number = password, such as Dan=dan7. Set permissionsVI AuthzAdd the following code at the end:[/]Dan=rwW=rIt means that the repository's root directory Dan has read and write permissions, and W only reads permissions.8. Modify the Svnserve.conf fileVI svnserve.confOpen a few notes below:Anon-access = Read #匿名用户可读auth-access = Write #授权用户可写Password-db = passwd #使用哪个文件作为账号文件Authz-db = Authz #使用哪个文件作为权限文件Realm =/var/svn/svnrepos # certified space name, repository directory9. Start the SVN repositorySvnserve-d-r/var/svn/svnrepos
10. Testing on Windows
Linux (CentOS) builds SVN server