Linux (CentOS) builds SVN server

Source: Internet
Author: User
Tags svn server port

The installation steps are as follows: 1, yum install Subversion 2, enter RPM-QL subversion to view the installation location, such as: we know that SVN generated a few binaries in the bin directory.  Enter SVN--help to see how SVN is used, such as. 3, create the SVN repository directory mkdir-p/var/svn/svnrepos 4, create a repository svnadmin create/var/svn/svnrepos executed this command after the/var/svn/ Svnrepos directory generated below these files 5, into the Conf directory (the SVN repository configuration file) Authz file is the rights control file passwd is the account password file svnserve.conf SVN service profile 6, set the account password VI passwd in the [ Users] block add user and password, format: account = password, such as Zzx=123 7, set permissions VI authz Add the following code at the end: [/]ZZX=RW means that the repository's root directory Dan has read and write permissions, and W only reads permissions. 8, modify svnserve.conf file VI svnserve.conf Open the following several comments (space also to be removed): anon-access = read #匿名用户可读auth-access = Write #授权用户可写password-db = passwd #使用哪个文件作为账号文件authz-db = Authz #使用哪个文件作为权限文件realm =/var/svn/svnrepos # Certified space name, Repository directory 9, start SVN repository svnserve-d-r/va R/svn/svnrepos 10, test a new test folder on Windows, right-click on the SVN checkout (to install TORTOISESVN beforehand): Fill in the SVN address, such as: Enter the password, such as:

6. Start the SVN service

Svnserve-d-r/svn/project/

Note: Do not use the system-provided/etc/init.d/svnserve start to start, because the system default startup script does not use the –r/svn/project parameter to specify a resource. In this case, the SVN service is started, and the client connection will prompt "Svn:no repository found in ' Svn://192.168.11.229/project '" error.

The default SVN server port is 3690.

Kill SVN Service:

# Ps-ef|grep SVN

Root 4642 1 0 16:08? 00:00:00 svnserve-d-r/svn/project/

Root 4692 3676 0 16:13 pts/2 00:00:00 grep svn

# kill-9 4642

Save Directory repository directory under/db/revs

[Email protected] revs]# pwd
/var/svn/svnrepos/db/revs

Linux (CentOS) builds SVN server

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.