Set up SVN server in CentOS 7 and centossvn

Source: Internet
Author: User

Set up SVN server in CentOS 7 and centossvn

The installation procedure is as follows:

1,Yum install subversion

2. Check the installation version.Svnserve -- version


3. Create the SVN version library directoryMkdir-p/var/svn/svnrepos

4. Create a version LibrarySvnadmin create/var/svn/svnrepos

After this command is executed, the following files are generated in the/var/svn/svnrepos directory:


5. Go to the conf directory (the svn version library configuration file)Cd conf/
The authz file is a permission control file.
Passwd is the account password file
Svnserve. conf SVN service configuration file

6. Set the account passwordVi passwd
Add the user and password to the [users] block. Format: account = password, for example, quwenzhe = 123456.

7. Set permissionsVi authz
Add the following code at the end:

[/]quwenzhe=rw


Quwenzhe, the root directory of the version Library, has read and write permissions on it.

8. Modify the svnserve. conf file.Vi svnserve. conf
Open the following comments:
Anon-access = read # anonymous user readable
Auth-access = write # authorized users can write
Password-db = passwd # Which file is used as the account file
Authz-db = authz # Which file is used as the permission File
Realm =/var/svn/svnrepos # Name of the authentication space, directory of the version Library


9. Start the svn version LibrarySvnserve-d-r/var/svn/svnrepos(Stop SVN commandKillall svnserve)
10. Test on windows

Enter the SVN address, for example:


Enter the user name and password, for example:


At this point, all the operations for building the SVN server on CentOS 7 have been completed. I hope my explanation will be helpful to you.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.