Linux SVN server build

Source: Internet
Author: User

The environment is centos6.x. About team management of code, I believe most people are accustomed to SVN. But I personally prefer git. This blog git common command is to introduce the basic use of git. The SVN server is now deployed as follows:

1. Install with Yum as follows:
Yum Install Subversion
2. Enter SVN--help to see how SVN is used.

USAGE:SVN <subcommand> [Options] [args]
Subversion command-line client, version 1.6.11.
Type ' svn help <subcommand> ' for help on a specific subcommand.
Type ' svn--version ' to see the program version and RA modules
or ' svn--version--quiet ' to see just the version number.

Most subcommands take file and/or directory arguments, recursing
On the directories. If no arguments is supplied to such a
command, it recurses on the current directory (inclusive) by default.

Available subcommands:
Add
Blame (praise, annotate, Ann)
Cat
Changelist (CL)
Checkout (CO)
Cleanup
Commit (CI)
Copy (CP)
Delete (Del, remove, RM)
diff (di)
Export
Help (?, h)
Import
Info
List (LS)
Lock
Log
Merge
Mergeinfo
Mkdir
Move (MV, rename, ren)
Propdel (Pdel, PD)
Propedit (Pedit, PE)
Propget (Pget, PG)
Proplist (plist, PL)
Propset (PSet, PS)
Resolve
Resolved
Revert
Status (Stat, ST)
Switch (SW)
Unlock
Update (UP)

Subversion is a tool for version control.
For additional information, see http://subversion.tigris.org/

3. Create the SVN repository directory
Mkdir-p/var/svn/svnrepos
4. Create a version library
Svnadmin Create/var/svn/svnrepos
Get the directory as follows:

Drwxr-xr-x 2 root root 4096 Jan 18:13 conf
Drwxr-sr-x 6 root root 4096 Jan 18:06 db
-r--r--r--1 root root 2 Jan 18:06 format
Drwxr-xr-x 2 root root 4096 Jan 18:06 hooks
Drwxr-xr-x 2 root root 4096 Jan 18:06 locks
-rw-r--r--1 root root 229 Jan 18:06 README.txt


5. SVN configuration under Conf

    • Authz file is a permission control file
    • passwd is the account password file
    • Svnserve.conf SVN service configuration file

6. Set the account password
Open passwd File
Add users and passwords to the [users] block in the format: Account number = password, such as Llz=llz

7. Set permissions
Open Authz File
Add the following code at the end:

[/]
LLZ=RW # has read and write access
Carlos=r # have Read permission

8. Modify the Svnserve.conf file
Modify the following:
Open a few notes below:
Anon-access = Read #匿名用户可读
auth-access = Write #授权用户可写
Password-db = passwd #使用哪个文件作为账号文件
Authz-db = Authz #使用哪个文件作为权限文件
Realm =/var/svn/svnrepos # certified space name, repository directory

9. Start the SVN repository
Svnserve-d-r/var/svn/svnrepos

Linux SVN server build

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.