Introduction, download, and installation of Svn in centos

Source: Internet
Author: User
Tags svn client version control system
ArticleDirectory
    • 1 SVN Introduction
    • 2. Download and install
1 SVN Introduction

The goal of the Subversion project is to build a version control system that is a compelling replacement for CVS in the open source community. the software is released under an Apache/BSD-style open source license.

SVN is a version control software, similar to CVS, but SVN is a bit open-source, and the version control capability of SVN is much stronger for CVs.

SVN can be used for project management and version synchronization.

Installation environment: centos4.1, applicable to the RedHat platform. (TX description to be commented on. Thank you)

2. Download and install 2.1:

Http://subversion.tigris.org, current date stable version svn1.32http: // subversion.tigris.org/downloads/subversion-1.3.2.tar.gz

2.2 installation:

Unzip: #: Tar zxvf subversion-1.3.2.tar.gz

Enter./configure, make, and make install in sequence to complete compilation and installation. Make install is also root.

2.3 enable the svn service: svnserve-d

Check whether the service is enabled: netstat-ntlp. If the port 3690 is enabled, it indicates that SVN is enabled. Official Use:

First, we need to build a SVN project. Most people think that only one file is needed to create a project. Before I use SVN for the first time, I think that folders need to be created to create a project in SVN.

2.4 create a project

Command: svnadmin create project_name

For example: [root @ hfinmsp3 subversion-1.3.2] # svnadmin create/opt/svnroot/ahinms, run as root.

Project_name is your project name.

After the creation is complete, project_name is a folder and you can see a conf folder. Go to the folder to view two files (if there is no passwd file, you can create it with VI) and edit svnserve. conf removes anon-access = read, auth_access = write, password-DB = passwd comments, and [general] comments.

VI passwd file. If it is a new file, enter:

[User]

Your_name = your_password

Your_name is your username and your_password is your password. This is a necessary pass to access SVN.

2.5 permission settings

Create SVN Group

[Root @ hfinmsp3 ~] # Groupadd SVN

[Root @ hfinmsp3 ~] # Usermod-g svn liuy (Add User liuy to group SVN)

Set SVN repository Permissions

[Root @ hfinmsp3 svnroot] # cd/opt/svnroot/

[Root @ hfinmsp3 svnroot] # chgrp SVN ahinms

[Root @ hfinmsp3 svnroot] # chown-r liuy: SVN ahinms

[Root @ hfinmsp3 svnroot] # chmod-r g + rwx ahinms

2.6 Linux Client Login

Checkout

CD/home/liuy/ahinms

SVN checkout SVN: // 134.65.135.4/opt/svnroot/ahinms

Add

MV ../ahinms _/adapters.

SVN add adapters

SVN commit adapters/-M "adapters" -- force-Log

2.7 Windows client commands

Install the svn client software TortoiseSVN-1.5.2.13595-win32-svn-1.5.1.msi. After the installation is complete, right-click check out

Related Article

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.