How to install the SVN server in Ubuntu

Source: Internet
Author: User

How to install the SVN server in Ubuntu
I. Installation

1. check whether or not to install

svn --version

Uninstalled

sudo apt-get remove --purge subversion

2. Installation

sudo apt-get updatesudo apt-get install subversion

3. view the version

# Svn version svn -- version # svn server version svnserve -- version

4. Create a repository

sudo mkdir -p /home/projectsudo svnadmin create /home/project
Ii. Configuration

Modify the three files in the conf directory, authz, passwd, and svnserve. conf.

1. Master configuration file of the svnserve. conf Repository

[General] # anonymous users cannot read, option value none, read and writeanon-access = none # permission users can write auth-access = write # the password file is passwdpassword-db = passwd # The permission file is authzauthz-db = authz

2. passwd is a password file. All users in the current Warehouse are recorded here.

[users]# harry = harryssecret# sally = sallyssecretadmin = admin

3. authz is a permission file used to configure permissions for users in passwd.

[Groups] # create a permission group and specify the users in the group. Use and separate them. # harry_and_sally = harry, sally # harry_sally_and_joe = harry, sally, & joeadmin = zhangcy, liuzz, adminuser = admin, maym, lizh, dongyan # assign permissions to the permission group [/project] @ admin = rw @ user = rw * =
3. Start

1. Start

svnserve -d -r /home/project

2. Check whether svnserve is running

ps aux | grep svnserve

3. Stop the server

killall svnserveps aux | grep svnserve

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.