[Practice] install and configure subversion in Windows 7

Source: Internet
Author: User
Tags svn client tortoisesvn

This article records my first installation and configuration of subversion in Windows 7. Many online resources are referenced during the installation process. However, as the software version is updated, I hereby record my own installation process.

Installer
  • Setup-Subversion-1.6.17Subversion server 1.6 Installer
  • A Windows Resource Manager integrated SVN client tool recommended for TortoiseSVN-1.6
  • User Manual subversion and tortoisesvn Chinese Version User Manual
    Configuration of independent server svnserver
    • 1. Install subversion and Tortoise

      Run the Setup-Subversion-1.617.msi directly to install subversion, and select the installation location as prompted during installation, such as F: \ Program Files \ Subversion

      Run the TortoiseSVN-1.6.15.21042-win32-svn-1.6.16.msi directly, follow the prompts to complete the installation, after the installation will prompt to restart

    • 2. svnserve as a Windows Service

      Use the command line tool SC. EXE to define a new service. Install svnserve as a Windows Service and run the following command to create a service that is automatically started after Windows is started.

      Note that the SC command line is special. In the key = value pair, there must be no space between key and =, but a space before value. For example, displayname = "Subversion" requires a space before "Subversion ".

      After the service is created, you can go to Control Panel> system and security> Management Tools> services to view the Subversion service and manually restart or stop the service.

    • 3. Create a version Library

      Use F: \ svntest as the root directory of the version library and create it with svnadmin under the bin directory where subversion is installed, for example, run the command svnadmin.exe create F: \ svntest \ test you can create a version library test under F: \ svntest.

      If it is successfully created, the test directory will automatically create the conf, db, hooks, readme.txt, and format files. Note that the project files on the server are stored after encoding, and the original files cannot be directly viewed.

    • 4. Configure the version Library
      • A. Find the conf directory of the version library, such as F: \ svntest \ test \ conf.
      • B. Edit the svnserve. conf file first. Note that no space is left before each line after the comment is removed.

        Line 12: remove the comment and change it to the top level, indicating that anonymous access to Anon-access = None Line 13 is not allowed: remove the comment and change it to the top level, authorization write access auth-access = write line 18: remove the comment and change it to the top-level write. This indicates that the passwd configuration file is used to set the user name and password. Password-DB = passwd line 25: remove the comment and change it to the top-level write, which indicates that the authz configuration file is used to set the permission group management. Authz-DB = authz

      • C. Edit the passwd file and configure the user name and password, for example:

        [users] admin = admin deve1= deve1deve2 = deve2 test = test 

      • D. Edit the authz file and configure the permission group, for example:

        [groups] Manager = admin Developer = deve1,deve2 User = test [/] @Manager = rw @Developer = rw test = r [test:/hello] @Manager = rw test =

        [Groups] is the user group, and the user name is after the group name before the equal sign. [/] Indicates that permissions are assigned to the root directory of the version database. @ manager = RW indicates that users in the Manager group can have read and write permissions on all directories and files in the root directory.

        [Test:/Hello] indicates that the permission is assigned to "hello" in the test database. For example, "test =" indicates that "test" users cannot access "hello ".

        After the configuration is complete, restart the Subversion service.

    • 5. Test version Library

      A. in resource manager, select your working directory, such as "F: \ test". Right-click the svn checkout menu;

      B. in the pop-up checkout dialog box, select SVN: // [server IP address]/test as the URL. During the test, the server and client are on the same machine, therefore, the entered URL is "SVN: // localhost/test" and then click OK. Then, a window pops up asking you to enter the user name and password, and enter the user name and password you set earlier, in the subsequent dialog box, the added files and directories are displayed one by one, and the last one is "completed at version 0", because no files are in the version library.

      C. If you can checkout, the configuration of the entire library is complete. Multiple green check boxes are displayed on the "test" folder icon.

      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.