Build SVN server under Linux

Source: Internet
Author: User

Recently engaged in a cloud server, trying to deploy some server-related things, as a development server, the first consideration is to build the SVN server. Make a note of the build process for easy viewing later.

First, install SVN software, some cloud servers will have the SVN server installed, some do not.

# Yum install-y subversion //Online installation svn

# Svnserve--version //Check SVN version

Second, create the SVN repository

1. Create a project version directory

                 # MKDIR/HOME/SVN                 &NBSP ;             //svn directory

            2, create a new repository
                 # svnadmin Create/home/svn/project   //project is the project name

           3, add user, to add SVN user is very simple, just in the SVN project root directory conf/passwd file user with a LIXF.

< Span style= "Font-family:verdana,sans-serif" >                [users]
                 # Harry = Harryssecret
                 # sally = Sallyssecret
                 lixf= 123456

          &NBSP;4, configure account permissions, need to modify authz file.

              The first is to configure permissions groups, which is configured with 2 groups Admin and Dev: /span>

               [groups]
/span>

               # harry_and_sally = harry,sally
span>                # Harry_sally_and_joe = Harry,sally,&joe
/ span> admin = lixf, Other

Then configure the specific permissions,

               [/]
                @admin = RW
               * =& nbsp

               [/doc]
  & nbsp             @cehua = RW
                @chengxu = R

5, let the above configuration take effect, need to modify SVN project root directory Next conf/svnserve.conf the contents of the file. Change the following fields to the following values and remove the previous # number to make the configuration effective.

# anon-access = None

# auth-access = Write

# authz-db =/svrt/wuxia/conf/authz

# password-db =/svrt/wuxia/conf/passwd

6. Start SVN service

               # svnserve-d-r/home/svn

           7, test server

               # SVN co svn://127.0.0.1/project


/span>


/span>

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.