Expert guidance for SVN1.6 server and client installation configurations

Source: Internet
Author: User
Tags svn svn client tortoisesvn

This section describes the SVN1.6 server and client installation configuration steps, with the rapid development of SVN, the version has also been upgraded to update, this section and everyone together to learn about SVN1.6 server and client installation configuration steps, welcome you to study together. The following 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 a matching SVN server version, otherwise there will be a variety of problems, you can see from the TortoiseSVN "about" menu of the corresponding Subversion version.
Download subversion Windows Client tortoisesvn and Simplified Chinese language installation package "based on personal preferences"
Http://tortoisesvn.net/downloads
2, server and client Installation Server installation, directly run the installation program, according to the prompts to install it, so we have a set of servers can run the environment.
Install TORTOISESVN, also directly run the installer, follow the prompts to install it, but the final will be prompted to reboot, in fact, the restart is only to make SVN working copy in Windows Special style takes effect, and all the actual functionality is irrelevant.
After reboot, install the Simplified Chinese Language pack, and then right click on a random directory, you will find out some SVN related menu, select the TortoiseSVN, and then select submenu "Settings", set language as "Chinese (Simplified)."
3, the establishment of SVN1.6 version of the Library (Repository)
Running a subversion server requires first establishing a version library (Repository), which can be viewed as a database of data stored on the server, and can be run directly after the Subversion server is installed, such as:
Svnadmincreated:/svn/repository
A version library is created under the directory d:/svn/repository.
If the Svnserver command is not recognized on the command line, you can view the Subversion/bin entry in the system environment variable path, without manually adding it.
You can also use the TortoiseSVN graphical interface to complete this step:
Under the directory D:/svn/repository "right key->tortoisesvn->createrepositoryhere", you can then select the version library mode, which uses the default Fsfs method, and then creates a series of directories and files.
4. Configure SVN1.6 Users and Permissions
Open D:/svn/repository, you will find that there are some more directories and files, open the Conf subdirectory, open the svnserve.conf file, where the line before all the # is equal to be ignored, you can take the # out of the line to take effect, Or you can add new rows yourself. The English comments in it have already explained the meanings of the various settings, and the last thing you set up in the [General] section is the following:
Anon-access=none
Auth-access=write
password-db=passwd

[note] All settings must be preceded by a space. Or you'll get an error.

Meaning is:
The user is not authenticated without 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 have to log on to see your project.
Then open the passwd file in the same directory to set up the account:
Similarly, the contents of the # number are not previously set in the [Users] section, for example:
Admin=zhang
Meaning is:
The password for user admin is Zhang
There is also a Authz file in the directory that assigns different permissions to the user for different directories.
5. Running Standalone server
The bin directory where the SVN1.6 is installed has svnservice.exe.
Enter svnservice-d-rd:/svn/repository directly in the DOS console (the last parameter is the location of the version library you just set up), and the console is blocked so that it remains open. Shutting it down means shutting down the Svnservice service.
Suggest you to Control Panel-Administrative Tools-Services Find Svnservice, right-click Select "Properties", and then set its startup type to "automatic", so that each boot automatically start the service, do not have to manually start. If you do not have this service, enter sccreatesvnserverbinpath= at the command line c:/programfiles/subversion/bin/svnserve.exe--service-rd:/svn/ Repository "Displayname= Subversion" Depend=tcpipstart=auto
"Note" "=" there is no space before, then must have a space.
6, initialization of the import
Turn on my computer, right-click on the directory you want to version control, select TortoiseSVN, and then select submenu "Import ..." to set the "File library URL" as the svn://localhost point to prompt the file is being imported.
Note that this is where the SVN repository is the same computer as the SVN service, so you can use localhost and other machines to access the SVN service, the IP address of the SVN://SVN server should be used, for example svn://192.168.1.125
7, SVN1.6 Basic client operation
A computer that does not have TORTOISESVN installed installs it first.
Create a directory for the version control project, such as D:/project, then right-click the directory in My Computer, select "svn out ...", set the "File library URL" as the IP address of the SVN://SVN server, and then ask your username and account number, You fill in the previous set of server-side user admin password Zhang
When you are sure that the file is being fetched to D:/project, the SVN client configuration is complete and you will see that the d:/project and the files underneath it are marked with a green check.
Simple daily use:
To get the 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", please update 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.

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.