160425. Linux Install SVN server

Source: Internet
Author: User

1: See if Linux has the SVN service installed

[Email protected] ~]# Rpm-qa Subversion

Subversion-1.6.11-15.el6_7.x86_64

2: Install SVN

#yum Install Subversion

3: Uninstall SVN

#yum Remove Subversion

4: View SVN-related information

[Email protected] ~]# Svnserve--version

Svnserve, Version 1.6.11 (r934486)

Compiled 17 2015, 08:37:43

Copyright (C) 2000-2009 CollabNet.

Subversion is open source software, see http://subversion.tigris.org/

This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository back-end (FS) modules is available:

* Fs_base:module for working with a Berkeley DB repository.

* Fs_fs:module for working with a plain file (FSFS) repository.

Cyrus SASL authentication is available.

5: Code Base creation

#创建SVN根目录

[Email protected] ~]# mkdir-p/OPT/SVN

#创建代码资源库

[Email protected] ~]# svnadmin Create/opt/svn/repo

After executing the above command, automatically establish the Repo test library, view the/opt/svn/repo folder, and discover the files containing conf, db,format,hooks, locks, README.txt, etc., stating that an SVN repository has been established.

6: Configure code base

[Email protected] ~]# cd/opt/svn/repo/conf

[Email protected] conf]# vim passwd

Edit SVN user and password

[Users]

# Harry = Harryssecret

# sally = Sallyssecret

Liu = 123456

7: Configure control permissions

[Email protected] conf]# VI Authz

[Groups]

# harry_and_sally = harry,sally

# Harry_sally_and_joe = Harry,sally,&joe

#分组名 = user under grouping, separated by commas

Coder = Liu

# [/foo/bar]

# Harry = RW

# &joe = R

# * =

# [Repository:/baz/fuz]

# @harry_and_sally = RW

# * = R

#表示对repo版本库下的所有资源设置权限

[Repository:/opt/svn/repo]

#coder分组下的用户有读写代码的权限

@coder = RW

8: Start SVN

#指定代码库

Svnserve-d-r/opt/svn/repo

#查看SVN进程

[Email protected] ~]# Ps-ef | grep SVN

Root 1937 1 0 17:28? 00:00:00 svnserve-d-r/opt/svn/zhilang

Root 2379 2301 0 18:34 pts/3 00:00:00 grep svn

160425. Linux Install SVN 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.