Install and configure the svn 1.6 server and client in Windows

Source: Internet
Author: User
Tags svn client svn update tortoisesvn

1. Software Download

Download the Subversion serverProgram.

Http://subversion.tigris.org/servlets/ProjectDocumentList? Folderid = 91

[Note] If the tortoise SVN client has been installed, You must select the corresponding SVN server version. Otherwise, various problems may occur, you can see the corresponding subversion from the "about" menu of tortoise SVN!

Download the Subversion Windows client tortoisesvn and the simplified Chinese Language installation package [depending on your interests]

Http://tortoisesvn.net/downloads

 

2. server and client Installation

Server Installation: run the installation program directly and install it as prompted. In this way, we have an environment where the server can run.

Install tortoisesvn and run the installation program directly. Follow the prompts to install the program. However, after the installation is complete, the system prompts whether to restart the program. In fact, the restart only takes effect for the special style of SVN work copy in windows, it has nothing to do with all the actual functions.

After the restart, install the Simplified Chinese Language Pack. Right-click a directory and you will find some more svn-related menus. Select tortoisesvn and select the sub-menu "Settings ", set language to "Chinese (simplified )".

 

3. Create a version Library (repository)

To run the Subversion server, you must first create a version Library (repository), which can be seen as a database for storing data on the server. After the Subversion server is installed, you can run it directly, for example:

Svnadmin create d: \ SVN \ Repository

A version library is created under the Directory D: \ SVN \ repository.

If the svnserver command is not recognized in the command line, you can check whether there are any subversion/bin entries in the path of the system environment variable. If not, add them manually.

You can also use the tortoisesvn graphical interface to complete this step:

Right-click the Directory D: \ SVN \ repository and choose tortoisesvn> Create repository here. Then you can select the version library mode. The default fsfs mode is used here, then a series of directories and files are created.

 

4. Configure users and permissions

Open D: \ SVN \ repository, and you will find that there are more directories and files, open the conf subdirectory, and open svnserve. CONF file. All the lines in front of this line are ignored by comments. You can remove # To make the line take effect, or add new lines by yourself. the English comments in the preceding Section have detailed the meanings of various settings. Finally, if you set the [general] section, the content without # before the bank of china is as follows:

Anon-access = none

Auth-access = write

Password-DB = passwd

Meaning:

Unauthenticated users do not have any permissions (if none is changed to read, read permission is granted)

The authenticated user can grant the write permission (of course, the user can also read)

Password data is stored in the passwd file

[Note] "Anon-access = none" must be displayed and written. Otherwise, you will have a default permission to view your project without logging in!

Then open the passwd file in the same directory to set the account:

Similarly, set the content without the # sign before the row in the [users] section, for example:

Admin = Zhang

Meaning:

The admin password is Zhang.

There is also an authz file in this directory, which is used to assign different permissions to users for different directories.

 

5. Run an independent server

The binlog of the subversioninstallation contains svnservice.exe.

In the DOS console, enter svnservice-D-r d: \ SVN \ repository (the last parameter is the location of the version library you just set), and the console is in the blocking status, keep it on. disabling it means closing the svnservice service.

 

Create a service

SC create svnserver binpath = "C: \ Program Files \ subversion \ bin \ svnserve.exe -- service-R D: \ SVN \ energy" displayname = "energy_subversion" depend = TCPIP start = auto

SC create svnserver binpath = "service full name -- service-r resource library location" displayname = "service name" depend = protocol start = automatic

 

We recommend that you go to control panel-Administrative Tools-service to find svnservice, right-click and select "properties", and set its Startup type to "automatic", so that the service is automatically started every time you start the system, you do not need to start it manually. If this service is not available, enter SC create svnserver binpath = "C: \ Program Files \ subversion \ bin \ svnserve.exe -- service-R D: \ SVN \ repository "displayname =" Subversion "depend = TCPIP start = auto

[Note] There is no space before "=", and there must be a space later!

 

6. initialize the Import

Open "my computer", right-click the directory for version control, select tortoisesvn, and select Sub-menu "import... ", set" file library URL "to SVN: // After localhost is determined, the system will prompt that the file is being imported.

Note that the svn file library and SVN service are on the same computer, so localhost is available. If other machines want to access the svn service, SVN should be used: // SVN Server IP address, such as SVN: // 192.168.1.125

 

7. Basic client operations

If tortoisesvn is not installed, install it first.

Create a directory to store the version control project, such as D: \ project. Right-click this directory in "My Computer" and select "SVN fetch... ", set" file library URL "to SVN: // ip address of the svn server. Next, you will be asked about your username and account. Then you will enter the user admin password Zhang set on the server.

After clicking OK, the system will prompt that the file is being retrieved to D: \ project.

Now, the svn client configuration is complete, and you will see that D: \ Project and the following files are marked with a green check mark.

Simple daily use:

To obtain the latest project version, right-click D: \ Project and select "SVN Update"

After you change the project, update your changes to SVN, right-click D: \ Project, and select "SVN commit". If you are cautious, update the project to the latest SVN version before submitting the changes.

Address: http://hi.baidu.com/ccie6554763/blog/item/8d29aff6f2146f0bb07ec5e9.html

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.