SVN server Environment Setup and basic operation (Ubuntu edition)

Source: Internet
Author: User
Tags svn


1, first install SVN this software

Apt-get Install Subversion

2. Create a folder named SVN in the home directory (the name of the folder is random)

Mkdir/home/svn

3. Create a Data warehouse (you can create as many as you want)

Svnadmin Create/home/svn/test

4. Start SVN Network Service

Svnserve-d-R/HOME/SVN
Where the-D parameter lets Svnserve run in the background, the-R parameter limits the data warehouse to the address that can be accessed on the network. /HOME/SVN Specify the location of the directory where the SVN data warehouse resides


5. Set SVN access permissions

In each data Warehouse directory there are a bunch of directories, enter CONF and open svnserve.conf This file, find the following lines,
and remove the previous note symbol ' # ', and be careful not to leave any spaces in front of each line.

Anon-access = Read
auth-access = Write
Password-db = passwd

Under the same directory, see How to configure the password file:

[User]
# Harry = Harryssecret
# sally = Sallyssecret
Harry and Sally each define the user name and password of the user who can write to repo. We can add the following



===================================================================

Added SVN user command under HTTP support:

sudo htpasswd/etc/subversion/passwd other_user_name

Restart
Svnserve-d-R/HOME/SVN

Stop command
Kill All Svnserve

View SVN Services

Ps-ef|grep SVN


SVN server Environment Setup and basic operation (Ubuntu edition)

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.