Centos Build SVN Server

Source: Internet
Author: User

1, Installation:

# Yum Install Subversion

To determine if the installation was successful:

# svnserve–version

2, build the SVN repository:

# mkdir/opt/svn/repos# Svnadmin Create/opt/svn/repos

After executing the above command, we automatically set up several files under repos, namely Conf, Db,format,hooks, locks, README.txt.

----------------------------------------------------------------------------------------------------

3, set passwd

# NANO/OPT/SVN/REPOS/CONF/PASSWD
[users]# Harry = harryssecret# sally = Sallyssecretusername = password# So we set up the user username

4, set Authz

# Nano/opt/svn/repos/conf/authz
[/]username = rw# [/] meaning for all directories # username = RW means that username has read and write permissions # together, username has read and write access to all directories

5, set svnserv.conf

# nano/opt/svn/repos/conf/svnserv.conf
Anon-access = none # makes unauthorized users inaccessible auth-access = Write # gives authorized users Write permission password-db = password # specify PASSWORDAUTHZ-DB = Authz # access Control File Realm =/opt/svn/repos # authentication namespace, Subversion is displayed in the authentication prompt and as a keyword for credential caching.

The default configuration is used. All of the above statements must be shelf written, the left cannot be blank, or an error will occur.

----------------------------------------------------------------------------------------------------

6, Connect

Start SVN:

# svnserve-d-r/opt/svn/repos

If you already have SVN running, you can run on a different port (the default port is: 3690):

svnserve-d-r/opt/svn/repos--listen-port 3691

So that the same server can run multiple Svnserver

The link address is:

svn://localhost:3690

Finish!

Centos Build SVN Server

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.