Linux (CentOS) builds SVN server

Source: Internet
Author: User

The installation steps are as follows:

1. Yum Install Subversion

[Email protected] static]#Yum Installsubversionloaded plugins:securitybase|3.7Kbxx:xxEpel|4.4Kbxx:xxEpel/primary_db |6.5MBxx: onExtras|3.4Kbxx:xxUpdates|3.4Kbxx:xxUpdates/primary_db |2.7MBxx:xxSetting up Install processresolving Dependencies-Running Transaction Check---> Package subversion.x86_640:1.6. One-Ten. El6_5 'll be updated---> Package subversion.x86_640:1.6. One- A. El6_6 'll be a update-finished Dependency resolutiondependencies resolved================================================================================Package Arch Version Repository Size================================================================================updating:subversion x86_641.6. One- A. El6_6 Updates2.3mtransaction Summary================================================================================Upgrade1Package (s) Total Download size:2.3MIs This ok [y/N]: ydownloading packages:subversion-1.6. One- A. el6_6.x86_64.rpm |2.3MBxx:xxRunning rpm_check_debugrunning Transaction testtransaction Test succeededrunning Transaction updating:subver Sion-1.6. One- A. el6_6.x86_641/2cleanup:subversion-1.6. One-Ten. el6_5.x86_642/2verifying:subversion-1.6. One- A. el6_6.x86_641/2verifying:subversion-1.6. One-Ten. el6_5.x86_642/2Updated:subversion.x86_640:1.6. One- A. El6_6 Complete!

2. Enter RPM-QL subversion to view the installation location as follows:

[Email protected] static]# rpm-ql Subversion/etc/bash_completion.d/etc/bash_completion.d/  Subversion/etc/rc.d/init.d/svnserve/etc/subversion/usr/bin/svn/usr/bin/  Svnadmin/usr/bin/svndumpfilter/usr/bin/svnlook/usr/bin/svnserve/usr/bin/  Svnsync/usr/bin/svnversion ....
We know that SVN generated a few binaries in the bin directory. Enter SVN--help to see how SVN is used, such as.
[[Email protected] static]# SVN--HELPUSAGE:SVN<subcommand>[Options] [args]subversion command-line Client, version1.6. One. Type'SVN help <subcommand>'  forHelp 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 takefileand/or directory arguments, recursingon the directories. If no arguments is supplied to such acommand, it recurses on the current directory (inclusive) by default. Available Subcommands:add Blame (praise, annotate, Ann)CatChangelist (CL) Checkout (CO) cleanup commit (CI) copy (CP) Delete (Del, remove,RM)   diff(DI) export Help (?, h) ImportInfoList (ls) lock log Merge MergeinfomkdirMove (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 forversion control. For additional information, see http://subversion.tigris.org/

3. Create SVN repository Directory
Mkdir-p/alidata/www/static/svn/svnrepos

4. Create a version library
Svnadmin Create/alidata/www/svn/svnrepos
After executing this command, the following files are generated under the/alidata/www/svn/svnrepos directory

# ls /alidata/www/svn/svnreposconf  db  format  hooks  locks  README.txt

5, enter the Conf directory (the SVN repository profile) passwd is the account password file Authz file is the rights control file svnserve.conf SVN service profile 6, set the account password VI passwd Add users and passwords in the [users] block,  Format: Account number = password, such as Dan=dan 7, set permissions VI authz Add the following code at the end: [/]dan=rww=r@g_admin = RW means that the repository's root directory Dan has read and write permissions, and W only reads permissions. 8, modify svnserve.conf file VI svnserve.conf Open a few comments: Anon-access = read #匿名用户可读auth-access = write #授权用户可写password-db = passwd # Which file to use as account file Authz-db = Authz #使用哪个文件作为权限文件realm =/alidata/www/svn/svnrepos # Certified space name, Repository directory 9, start SVN repository svnserve-d-r/ali Data/www/svn/svnrepos

Linux (CentOS) builds 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.