Install SVN server and client in win7

Source: Internet
Author: User
Tags tortoisesvn

1. Download the Server Installation Package, the latest version 1.8:

Setup-subversion-1.8.0-1

SLAVE: http://sourceforge.net/projects/win32svn? Source = DLP

2. Download the Client installation package. The latest version is 1.8. Because the machine is 64-bit, download the corresponding version:

TortoiseSVN-1.8.0.24401-x64-svn-1.8.0

SLAVE: http://sourceforge.net/projects/tortoisesvn? Source = DLP

After installation, create Repository:

Method 1: In the command line, CD switches to the bin folder of the Subversion installation directory, and then runs svnadmin create d:/mysvn

Method 2: Create a folder named mysvn on drive D, right-click it, and choose [toisesvn]-> [Create repository here].

After repository is created, several files and folders are generated in the directory:

The conf directory is used to set the managed directory;

The DB directory is the data file of all version control;

Hooks Directory: directory of the hook script file;
Locks is used to hold the directory of locked data in the Subversion file library, and to track the client that accesses the file library;

The format file is a text file with only one integer in it, indicating the version number configured in the current file library.

1. Set the version control database permission, open the/CONF/directory, and open svnserve. conf. Find the following two sentences:

# Password-DB = passwd # authz-DB = authz

Remove the # sign in the previous step and change it:

Password-DB = passwdauthz-DB = authz

2. Set an account, open the authz file, and add the following content at the end of the file:

[/]
Admin = RW
Student = RW

The brackets in front indicate any path, and then there are two accounts, namely admin and student. Their permissions are RW, that is, read and write.

3. Set the account password, open the passwd file, and add it under users:

Admin = Admin
Student = student

= The first is the user name, which must be the same as the one configured in authz, = the password corresponding to the user name.

In this way, all configurations are completed. However, we can configure SVN startup as a Windows 7 System Service and start it as soon as the system starts. After configuration, no manual management is required.

Create a notebook on the desktop, copy the following content to the notepad, save the notebook, and change the file Suffix of the notebook *. bat, such as mysvn. bat, so that the notepad file becomes a batch file that can be double-clicked. Note: there must be no space before "=" and no space before it.

sc create SVNService binPath= "\"D:\Subversion\bin\svnserve.exe\" --service -r D:\MySVN" DisplayName= "SVNService" depend= Tcpip start= autosc start SVNServicepause

You need to modify the binpath to the absolute installation path of the subversion and change it to the directory where you want to install it. D: \ mysvn is the repository path created above. Save the modification and double-click it. Then you can view the system service to see the svnservice service.

Verify SVN access. Right-click [toisesvn] on the desktop and enter SVN: // localhost/in the address bar, this completes the installation of the local SVN server and client.

However, if this is installed, other users cannot access it because SVN's default port 3690 is not enabled. By default, Windows 7 ports are not open. This part of work is done by the system firewall. To open a port, You need to manually open it in the firewall, steps:

Control Panel-> Windows Firewall-> Advanced Settings


Click "inbound rules" on the left, and "new rule..." will appear on the right. Click


In the open wizard panel, select "Port" and click Next.


Add port 3690 to open in the text box, and then click Next
Select allow connection and click Next.


To ensure normal use of the port in various network environments, select all three environments and click Next.

Name the rule and click "finish.

Similarly, set outbound rules. Success.

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.