How to configure the svn server: prerequisites:
Download the latest SVN Server:
Svn-1.4.5-setup.rar
Download the latest SVN client:
TortoiseSVN-1.4.5.10425-win32-svn-1.4.5.rar
Download and configure the svn service as a window Service Automatic Running tool:
Svnservice.rar
Steps:
1.download and install svn1.4.5-setup.rar. Assume that you have installed it in the directory G: \ Program Files \ subversion.
2. Create a repository. In the command window, enter svnadmin create G: \ svnroot \ projects \ searchz and set the directory.
3. Configure repository and enter the repository directory. Here is G: \ svnroot \ projects \ search. You will see the conf directory and enter this directory. You will see
Svnserver. conf and passwd files.
Modify the two files as follows:
Svnserve. conf
[General]
### These options control access to the repository for Unauthenticated
### And authenticated users. Valid values are "write", "read ",
### And "NONE". The sample settings below are the defaults.
Anon-access = read
Auth-access = write
### The password-DB option controls the location of the password
### Database file. Unless you specify a path starting with /,
### The file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
Password-DB = passwd
Meaning:
Unauthenticated users do not have any permissions (if none is changed to read, read permission is granted)
The authenticated user can grant the write permission (of course, the user can also read)
Password data is stored in the passwd file
Passwd
[Users]
Harry = harryssecret
Sally = sallyssecret
Weip = weip
Note the configuration in the last passwd. One user uses the line, for example, weip = weip, indicating that the user name is weip and the password is weip. 4. Start the Subversion service.
Start in either of the following ways:
(1). Command method: svnserve-d-r G: \ svnroot \ projects the default port is 3690. If this port is temporarily used by other programs, you can choose --
Listem -- Port = bind port.
(2) Subversion service: by default, Windows service is downloaded, which does not exist. It must be downloaded through svnservice-install-d-r.
G: \ svnroot \ projects, (svnservice must be in the same directory as svnserve)
Use Net start svnservice to run it as a service. We recommend that you open the Control Panel to find svnservice and set its Startup type to automatic. In this way, the server configuration architecture is ready.
Now you can use tortoisesvn of the client to access the server you Just configured. The URL format is as follows:
SVN: // ip address/Repository name. Here is: SVN: // 127.0.0.1/searchz.
Simple daily operations on the client:
To obtain the latest version, SVN updated.
To update to SVN, select SVN submit (if you are cautious, Update to the latest version before submission ).