Ubuntu14.04 build and install the SVN Server

Source: Internet
Author: User
Tags svn client tortoisesvn
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 the svnsudoapt-getinstallsubversion2, create the code repository svnadmincreate/home/svn/project after the command is complete, enter the project directory, enter ls to view the display directory:

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.

Ubuntu 14.04 SVN server svn: // http://www.linuxidc.com/Linux/2015-01/111956.htm

CentOS 6.2 SVN setup (YUM installation)Http://www.linuxidc.com/Linux/2013-10/91903.htm

CentOS 6.5 deploy Apache + SVN http://www.linuxidc.com/Linux/2013-12/94315.htm

Apache + SVN build SVN server http://www.linuxidc.com/Linux/2013-03/81379.htm

Windows SVN server setup and use + client Reset Password http://www.linuxidc.com/Linux/2013-05/85189p5.htm

Ubuntu Server 12.04 install SVN and migrate Virtual SVN data http://www.linuxidc.com/Linux/2013-05/84695.htm

Ubuntu Server svn service and migration method http://www.linuxidc.com/Linux/2013-05/84693.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-07/119756.htm

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.