Build and install the SVN server in Ubuntu 14.04

Source: Internet
Author: User
Tags svn client

Build and install the SVN server in Ubuntu 14.04

Two days ago, the company was going to build a svn server for everyone to use. So we first installed a Ubuntu system and then set up the svn server environment. The specific process of building svn is described below:

1. Install svn

Sudo apt-get install subversion

2. Create a code repository

Svnadmin create/home/svn/project

After the command is complete, enter the project directory and enter ls to view

Display directory:

Conf db format hooks locks README.txt

The repository is successfully created.

3. Modify the File Execution permission

Chmod + x/home/svn/project/conf/authz

Chmod + x/home/svn/project/conf/passwd

Chmod + x/home/svn/project/conf/svnserve. conf

4. Configure svn permissions, accounts, and passwords. Enter the following command:

Vim/home/svn/project/conf/svnserve. conf

Hide the following hidden files and remove the previous # without spaces.

Authz-db = authz

Anon-access = none

Auth-access = write

Password-db = passwd

Authz-db = authz

Password modification:

Vim/home/svn/project/conf/passwd

Join:

[Users]

User (you can name it by yourself) = 123456 (self-set password)

5. Start the svn service and check whether the startup is normal.

Svnserve-d-r/home/svn/project/

View the command:

Sudo netstat-antp | grep svnserve

6. Kill the svn process and restart it.

Restart svn. First, check the id of svn.

Ps-A | grep "svn"

And then kill the process id.

Kill process id

Restart:

Svnserve-d-r/home/svn/project/

7. upload documents to the project

Svn import directory/file: // home/svn/project

8. Install svn on the window Client

Svn client official website download: http://tortoisesvn.net/downloads.html

After the download and installation, visit the url: svn: // 192.168.2.145/project

Note:

At the beginning of svn construction, the following error occurs when window accesses svn: unable to connect a repository at URL.

There are two solutions:

1. Right-click Local svn, TortoiseSVN-> Settings-> Saved Data, clear cache Data

2. Comment out authz-db, restart svn, import again, and enter the username and password to access the content in the project.

Next, you can perform various operations on svn.

Set up SVN server svn in Ubuntu 14.04 ://

CentOS 6.2 SVN setup (YUM installation)

Deploy Apache + SVN in CentOS 6.5

Build an SVN server using Apache + SVN

Set up and use the SVN server in Windows + reset the password on the client

Install SVN in Ubuntu Server 12.04 and migrate Virtual SVN data

Build svn service and migration method on Ubuntu Server

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.