Build SVN server under Windows and set boot up

Source: Internet
Author: User
Tags svn client

1, install the SVN server, download the Windows version of SVN to http://subversion.apache.org/packages.html, and install, run the SVN command at the command line below, so the SVN server installation is successful.

    1. C:\Documents and SETTINGS\ADMINISTRATOR>SVN
    2. Use "SVN help" to get the usage.



2. Create warehouse repository: Run command

    1. C:\Documents and Settings\administrator>svnadmin Create G:\SVN

This command will automatically create a folder named SVN under G Disk, the contents of which are not necessary, do not modify manually, the content is automatically maintained by SVN, the respective use:

The Conf folder is the configuration file for this repository.

DB is the place to actually store the data version.

The contents of the Hooks folder are used to define certain action-triggered hook scripts.

Files in locks are used to lock on certain branches or files.

3, create the User: Enter the Conf directory (in this case, G:\svn\conf), open the svnserve.conf file, find the following:

  1. [General]
  2. # # # These options control access to the repository for unauthenticated
  3. # # # and Authenticated users. Valid values are "write", "Read",
  4. # # # and "None". The sample settings below is the defaults.
  5. # anon-access = Read
  6. # auth-access = Write
  7. # # # The PASSWORD-DB option controls the location of the password
  8. # # Database file. Unless specify a path starting with A/,
  9. # # # The file ' s location was relative to the directory containing
  10. # # # This configuration file.
  11. # # If SASL is enabled (see below), the This file won't be used.
  12. # # # Uncomment the line below to use the default password file.
  13. # password-db = passwd

Will

    1. # anon-access = Read
    2. # auth-access = Write
    1. # password-db = passwd

Remove the comment from the revision to

    1. Anon-access = Read
    2. auth-access = Write
    1. Password-db = passwd

This makes it possible to use the user in the passwd file.

Open passwd (and svnserve.conf in the same directory), you can see that the creation of two users are commented out, can be modified by two users, can also create their own users, here I created a new user, passwd file was modified to:

    1. [Users]
    2. # Harry = Harryssecret
    3. # sally = Sallyssecret
    4. Admin=admin

4, start the SVN server, run the command svnserve-d-R G:\svn, you can start the service

    1. C:\Documents and settings\administrator>svnserve-d-R G:\SVN

-d means running in the background,-R means running as a super administrator, G:\SVN is the repository managed by SVN.

5. Configure SVN server to boot

Open a DOS window and execute the following command in any directory:

 

    1. There must be a space after each equal sign in the command or the command execution fails
    2. SC create svnserve binpath= "\" D:\Apache-Subversion-1.8.9\bin\svnserve.exe\ "--service--root d:\projects" displayname = "SVN Serve" depend= Tcpip start= Auto

Where SC is the Windows-brought service configurator, the parameter binpath represents the installation path of the Svnserve executable file, because "program Files" in the path has spaces, so the entire path needs to be enclosed in double quotation marks. The double quote itself is a special character that needs to be transferred, so the two double quotes before and after the path need to be written in a \ "

The--service parameter means to run as a Windows service,--root indicates the location of the SVN repository, and the service parameters and root parameters are all part of the binpath. As a result, the path to the Svnserve.exe is enclosed in a pair of double quotes, and the double quotes do not need to be escaped.

DisplayName represents the name displayed in the list of Windows services, depend =TCPIP indicates that the Svnserve service needs TCPIP services, and Start=auto indicates that it will run automatically after booting.

After installing the service, the Svnserve will not run automatically until the next boot.

To uninstall the SVN service, execute the sc delete Svnserve to

So the SVN configuration is complete, to http://tortoisesvn.net/downloads.html download an SVN client, it can be used.

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

From: http://www.cnblogs.com/jinmingjie/archive/2012/06/05/2536995.html

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.