[Reprint]centos Install SVN server

Source: Internet
Author: User

First, install Subversion

#yum Install Subversion 1. View file generation at installation, use RPM-QL subversion2. Uninstall Subversion: #yum remove Subversion3. Stop Subversion Service: # Killall Svnserve second, create a warehouse(To create multiple warehouses as an example) #svnadmin create/var/svn/demo#svnadmin Create/var/svn/coffeetest/var/svn/demo and/var/svn/ Coffeetest is the path to the created warehouse, which can theoretically be any directory. Here I take/var/svn as the total path for all warehouses, creating warehouses under the directory. third, the configuration warehouseIndividually configured for each warehouse, modify the three configuration files (Authz, passwd, svnserve.conf) under each warehouse conf directory, respectively 1.Modify the Authz file, this configuration file can set user group and user directory permissions ==============================[groups]# harry_and_sally = harry,sally# harry_sally _and_joe = Harry,sally,&joe admin = Admin,user1,user2# [/foo/bar]# Harry = rw# &joe = r# * = [/] @admin = RW *      =============================== above the green section is the content of my configuration, the first line of green is to configure a user group admin has members of admin and Novalue two, the second row of Green Start configuration directory permissions, Permission to set the Admin group (preceded by the @ sign) is read and write, other members do not have permissions (* =) 2.Modify the passwd file to set the user and password to access the current warehouse ===========================================[users]# Harry = harryssecret# sally = Sallyssecretadmin = 123456user1 = 123456user2 = 123456=========================================== 3.Modify the svnserve.conf file, open permission control and other functions to find the first General option [Basic], the front is a # number of the minus #, as follows is my demo warehouse configuration content =================================== ========================================[general]### These options control access to the repository for unauthenticated  # # # and Authenticated users.  Valid values are "write", "read", # # # and "None". The sample settings below is the defaults. anon-access = None auth-access = Write# # # The PASSWORD-DB option controls the location of the password### database file. Unless specify a path starting with a/,### the file's location is relative to the directory containing### this config Uration file.### If SASL is enabled (see below), this file would not be used.### uncomment the line below to use the Defaul T password file. password-db = passwd# # # The AUTHZ-DB option controls the location of the authorization### rules for path-based access control. Unless specify a path### starting with a/, the file's location is relative to the the### directory containing this fi  Le. If you don ' t specify an### authz-db, no path-based access control are done.### uncomment the line below to use the default Authorization file. authz-db = Authz# # # This option specifies the authentication realm of the repository.### If both repositories have the same authentication  Realm, they should### has the same password database, and vice versa. The default realm### is repository ' s UUID. realm = Coffeetest Svndata========================================================================== Note: All lines must be shelf, otherwise error. Iv. Start-up and shutdown services1. Start the service #svnserve-d-r/var/svn--listen-host 192.168.1.16 command/var/svn is the root of all my warehouses, if a single warehouse, you can directly write the warehouse address, such as the launch of the demo warehouse, # svnserve-d-r/var/svn/demo--listen-host 192.168.1.16 2. Stop service #killall Svnserve v. Access to the Warehouse projectWe have two code warehouses/var/svn/demo and/var/svn/test, so you can use Svn://192.168.1.16/demo when the client accesses

[Reprint]centos Install 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.