CentOS Quick Build Subversion server

Source: Internet
Author: User

Environment: CentOS x86_64
Description: Use Daemon's way to run SVN without using Apache
First to: http://subversion.tigris.org/Download the latest Subversion source code

I'm down: http://subversion.tigris.org/downloads/subversion-1.6.2.tar.bz2.

Decompression: Tar jxvf subversion-1.6.2.tar.bz2
CD subversion-1.6.2
SVN Co http://svn.apache.org/repos/asf/apr/apr/branches/1.2.x Apr
SVN Co http://svn.apache.org/repos/asf/apr/apr-util/branches/1.2.x apr-util

Download: Wget-c http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz
Decompression sqlite-amalgamation-3.6.13.tar.gz
and copy the sqlite3.c into the (non-existent path to build it yourself):
CP sqlite-3.6.13/sqlite3.c./subversion-1.6.2/sqlite-amalgamation/

./configure–prefix=/usr/local/subversion–with-ssl–with-zlib=/usr/local/zlib–enable-maintainer-mode
Make && make install
Compile and install!

Simple configuration
First start subversion (create your own SVN home directory, I am mkdir-p/www/svnroot):
/usr/local/subversion/bin/svnserve-d-r/www/svnroot
(have not understood to see/USR/LOCAL/SUBVERSION/BIN/SVNSERVE–HELP)

Cd/www/svnroot
Create a directory:
/usr/local/subversion/bin/svnadmin Create Hao32
To modify a configuration file:
CD./hao32/conf
LS you will find three files (respectively, permissions, passwords, configuration):
Authz passwd svnserve.conf
Paste out three files for your reference:
Authz

[Aliases]
[Groups]
dev = User1,user2 #两个用户, in the dev group you can add multiple groups
[hao32:/] #这里是目录名字就是刚才svnadmin Create Hao32
@dev = RW #dev组赋予读写权限

passwd

[Users]
User1 = 123456
User2 = 456789

Svnserve.conf

[General]
Anon-access = none # does not allow anonymous users
auth-access = Write # gives writable
password-db = passwd # passwd authentication method, is to use the above passwd configuration file
authz-db = Authz # Use this authz permission file
[SASL]

Check out the local test! Good luck!

CentOS Quick Build Subversion 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.