Quickly build svn lan servers

Source: Internet
Author: User

Let's talk about the original intention.

A while ago I wantedCodeCopy a copy to your girlfriend's computer, so that no matter which computer you are on, you can get the Code. However, there may be version inconsistencies between the two sides, but it is hard to find a solution.

Data sharing is also required for the GM reply tool two days ago. My colleagues suggested using the svn LAN server to implement the tool, and they were immediately interested. As a result, with the assistance of a colleague, I started the svn LAN server. It's really convenient. It's actually very easy to use. Now let's share it with you.

1. First download the svn server from the official website. If it is an installation package, environment variables are automatically set. If it is green, you need to manually set the environment variables: for example, the file directory is c: \ Program Files \ svn-win32-1.6.5 \ bin, then set the environment variables:

2. Create your own SVN server root directory folder, for example, E: \ svnroot.

3. Create the svn data directory in the command line folder, for example:

4. The code folder is successfully created in the svnroot directory. Now let's take a look at the automatically generated content in this folder:

5. Open the conf folder. There are three configuration files: svnserve configuration specifies which is the account file, passwd configuration account and password, and authz configuration of the existing account permissions:

6. The specific configuration of svnserve is as follows: remove the # sign before password-DB, that is, remove the comment to make it take effect:

7. The passwd configuration is as follows: add the account and password required by you, or remove the original account and comment it out.

 

8. The specific configuration of authz is as follows, mainly to set the read and write permissions of the account, that is, update and submit permissions:

9 after the build is complete, start the server: Create a. BAT file with any name. The content is as follows, followed by the newly set SVN root directory path:

10 double-click to start the server. It must be started before the svn server is used for the first time after each startup and cannot be closed.

11 later I thought it was inconvenient to display the window, so I found a way to hide the window, for example, to create a start. vbs file with the following content:

12 double-click the file to execute svnroot. bat, and the CMD window is hidden:

13 now, you can use the following URL to checkout Data Directories on other computers or local machines in the LAN. 192.168.0.101 is the IP address of the computer where the server is located. SVN can also be used for local servers: // localhost/data is operated as the checkout address:

14 when you press checkout, a prompt is displayed for entering the account and password. Use the password you Just configured, and check the box in the lower left corner to record the account information. You do not need to enter it again later:

15. Checkout successful:

16 now, you can add or modify and delete files under the Code directory of checkout. SVN has been used to build a LAN server.

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.