SVN1.6 Server and Client Installation configuration guide

Source: Internet
Author: User
Tags svn client tortoisesvn

This section describes the SVN1.6 server and client installation configuration steps, and with the rapid development of SVN, the version has also been updated, this section will learn with youSVN1.6Server and client installation configuration steps, we welcome you to learn together. Here is a detailed description.
1. Software download
Download the SVN1.6 server program.
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
"Note" If you have previously installed the TORTOISESVN client, you must select the SVN server version that is associated with it, otherwise there will be a variety of problems, you can see the version of Subversion from the "about" menu in TORTOISESVN!
Download subversion for Windows Client TortoiseSVN and Simplified Chinese language installation package "depending on your hobbies"
Http://tortoisesvn.net/downloads
2, server and client Installation Server installation, directly run the installation program, according to the prompts to install, so that we have a set of servers to run the environment.
Install TORTOISESVN, also directly run the installation program, follow the prompts to install, but after the final completion will prompt whether to restart, in fact, restart just make SVN work copy in Windows Special style takes effect, and all the actual function is irrelevant.
After the restart is complete, install the Simplified Chinese Language pack, then right-click on any directory, you will find a number of SVN related menu, select the TortoiseSVN, and then select the submenu "Settings", set Language to "Chinese (Simplified)".
3. Build SVN1.6 repository (Repository)
Running the Subversion server requires first establishing a repository (Repository), which can be viewed as a database of data on the server and can be run directly after the Subversion server is installed, such as:
Svnadmincreated:\svn\repository
A repository is created under directory D:\svn\repository.
If the Svnserver command is not recognized on the command line, you can view the system environment variable in path with no Subversion/bin entries, not manually added.
You can also use the TortoiseSVN graphical interface to complete this step:
In the directory D:\svn\repository "right->tortoisesvn->createrepositoryhere", and then you can choose the repository mode, where the default Fsfs method is used, and then create a series of directories and files.
4. Configuring SVN1.6 Users and Permissions
Open D:\svn\repository, you will find that there are a number of directories and files, open the Conf subdirectory, open the svnserve.conf file, this line before any of the # is equal to the note is ignored, you can remove the # Let the line take effect, Or you can add a new row yourself. The English notes in the inside have detailed the meanings of the various settings, and finally you set the line in the [general] subsection without the # number as follows:
Anon-access=none
Auth-access=write
password-db=passwd
The meaning is:
Unauthenticated user does not have any permissions (if you modify none to read is to give Read permission)
Authenticated user giving Write permission (readable, of course)
Password data is stored in the passwd file
"Note" Anon-access=none This must be written out, otherwise there will be a default permission, others may not need to login to see your project!
Then open the passwd file of the same directory to set up the account:
Similarly, there are no # numbers before the rows in the [users] subsection, for example:
Admin=zhang
The meaning is:
The password for user admin is Zhang
The directory also has a Authz file that is used to assign different permissions to the user for different directories.
5. Running a standalone server
The bin directory where SVN1.6 is installed is svnservice.exe.
Enter svnservice-d-rd:\svn\repository directly in the DOS console state (the last parameter is the location of the repository you just set up), and the console is in a blocked state so that it stays open. Closing it would mean shutting down the Svnservice service.
It is recommended that you find Svnservice in the Control Panel-Administrative Tools-services, right click on "Properties", then set its startup type to "automatic", so that each boot automatically start the service, do not have to start manually. If this service is not available, enter Sccreatesvnserverbinpath= "c:\programfiles\subversion\bin\svnserve.exe--service-rd:\svn\" on the command line. Repository "displayname=" Subversion "Depend=tcpipstart=auto
"Note" = "There is no space before it must have a space!"
6. Initialize the Import
Open "My Computer", right-click on the directory where you need to version control, select TortoiseSVN, then select submenu "Import ...", set "Vault url" to Svn://localhost point and you will be prompted to import the file.
It is important to note that this is the case of the SVN file library and the SVN service is the same computer, so can be used localhost, other machines if you want to access the SVN service, you should use the IP address of the SVN://SVN server, for example svn://192.168.1.125
7. SVN1.6 Basic Client operation
The computer that does not have TORTOISESVN installed it first.
Create a directory to be used for the version control project, such as D:\project, then right-click the directory in My Computer, select "svn out ...", set "Vault url" as the IP address of the SVN://SVN server, and then ask your username and account number, You fill in the front of the server side set the user admin password Zhang
After the point is confirmed, the file is being pulled out to D:\project, and the SVN client configuration is complete, and you will see that the D:\project and the files below are marked with a green checkmark.
Simple daily use:
To get the current latest version of the project, right-click D:\project, select "Svnupdate", you change the project, to update your changes to SVN, right-click D:\project, select "Svncommit", if you are cautious, please update to the latest version of SVN before submitting.
Create a service
Sccreatesvnserverbinpath= "C:\programfiles\subversion\bin\svnserve.exe--service-rd:\svn\energy" DisplayName= " Energy_subversion "Depend=tcpipstart=auto
Sccreatesvnserverbinpath= "Service full name--service-r repository location" displayname= "Service Name" depend= protocol start= Automatic. This section explains the SVN1.6 server and client configuration.

SVN1.6 Server and Client Installation configuration guide

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.