WIN7 installation of SVN server side and client building collaboration environment

Source: Internet
Author: User
Tags tortoisesvn

A Customer Scenario:

customer site needs to be closed on the virtual machine development, so need to build a SVN Collaborative development environment, customers provide a new bare-metal installation of the operating system is WIN7 Flagship edition - bit.


Two SVN Server Setup

1. SVN Server version

It's setup-subversion-1.7.8.msi .

2. Setup steps:

2.1 Installing the SVN Server

Double-click to execute "setup-subversion-1.7.8.msi", install the SVN Server, the installation process can basically be performed by default, the installation directory can be configured by itself, I configured the installation directory is C: \subversion\ . After the installation is complete,a series of files are generated in the Subversion directory, and some of the SVN commands are in the bin directory. such as:

2.2 creating a repository directory

after the installation is complete, create a directory as the repository's directory, which is created C:\svn .  


2.3 creating repositories--repositories can be seen as places where data is centrally stored and managed on the server

Open the cmd window of the Win7 system and go to the bin directory in the SVN installation directory , C : \subversion\bin\ , then execute command:svnadmin Create C: \svn\repos1 , such as:

After the command executes successfully, the repos1 directory is generated under theC:\svn\ directory, which is structured as follows, where the conf Directory is a configuration file for some repository. such as:



Once the 2.4 repository has been created, we can set the account and password of the SVN collaboration member

Into the conf directory, there are three main configuration files, such as:

which

Authz : Configure SVN collaboration account operation permissions;

passwd : Configure SVN collaboration account and password;

svnserver.conf : Configure Some key configurations of the SVN server.  

Open the svnserver.conf file andremove "# # "before theline "# # password-db = passwd" so that it opens authentication, users must enter the user name and password when they log on to the SVN server for related operations. such as:

Open the passwd file, add the user you want to create at the end of the text, and configure the ta 's password, such as:

2.5 start SVN service

Go to the bin directory of the SVN installation directory and execute the command:svnserve.exe--daemon, such as:

Svnserve will wait for a request on port 3690 ,--daemon(two dash) option tells Svnserve Run as daemon so that it does not exit until it is manually terminated. Closing the command-line window stops the svnserve .

After normal startup, you can use the SVN Client tool to connect the test. Use TortoiseSVN-Repo-browser to view the repository. In the popup URL dialog box, enter:

Svn://localhost/svn/repos1

Click the OK button to see the repos1 repository of the directory tree structure, only then repos1 is an empty library.

PS:

1.we can also use the --root option to set the root location to restrict the server's access to the directory, thereby increasing security and saving time for entering the svnserve URL . The operation commands are as follows:

Svnserve.exe--daemon--root C:\SVN

After successful execution, the Repository browser URL in TortoiseSVN is reduced to:svn://localhost/repos1

2, we command to start the svn service is very unfriendly, after the start of the command window can not be closed, once the shutdown of the svn service will be stopped. Here's a solution: Add the service to the Windows system service. Here's how:

Execute the command in the cmd Command window:

C:\>SC Create svn binpath= "C:\Subversion\bin\svnserve.exe--service-r c:\svn\repos1" displayname= "Svnservice" depend= TCPIP start= Auto

To run this line of command, the two paths are the address of the Svnserve.exe and the address of the repository, respectively . Start=auto, each boot automatically runs. It is important to note that the equals sign must be preceded by a space followed by the parameter value set.

This will enable our service to start successfully, and now it is not related to closing the command window, and a service named Svnservice can be seen in the service of the operating system. Such as:

WIN7 installation of SVN server side and client building collaboration environment

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.