First, download the Subversion server
Http://subversion.tigris.org/servlets/ProjectDocumentList? Expandfolder = 469 & folderid = 8100
Assume that the Subversion installation path is
D:/Subversion
Download tortoisesvn, which is a SVN client in windows.
Http://tortoisesvn.net/downloads
After the installation is complete, you may need to restart your computer.
Create an empty folder to serve as the version library of the Subversion server.
Assume that the version library path is D:/svnroot/ljsvn.
In the ljsvn directory, right-click and select the [tortoisesvn] menu, and select [Create version library]
After creation,
D:/svnroot/ljsvn/CONF/authz
Is the user permission list
------------------------------------------------------------------------------
[Aliases]
# Joe =/C = xz/ST = dessert/L = snake city/o = snake oil, Ltd./ou = Research Institute/CN = Joe average
[Groups]
# Harry_and_sally = Harry, Sally
# Harry_sally_and_joe = Harry, Sally, & Joe
Svnadmin = LJ
# [/Foo/bar]
# Harry = RW
# & Joe = r
# * =
[/]
Lj = RW
# [Repository:/Baz/fuz]
# @ Harry_and_sally = RW
# * = R
------------------------------------------------------------------------------
The above red is the change made
Set the LJ account to be able to access all directories and have read and write permissions.
D:/svnroot/ljsvn/CONF/passwd
Set the password list
[Users]
# Harry = harryssecret
# Sally = sallyssecret
Lj = ljlj
Indicates that the password of the LJ account is ljlj.
For more information about the syntax, see the notes for the above two files.
D:/svnroot/ljsvn/CONF/svnserve. conf
Set global access permissions.
[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 = none # Description: anonymous access is not allowed.
Auth-access = write # the login can perform write operations
### 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 directory containing
### This configuration file.
### If SASL is enabled (see below), this file will not be used.
### Uncomment the line below to use the default password file.
Password-DB = passwd # password database file, which corresponds to the above passwd file
### The authz-DB option controls the location of the authorization
### Rules for path-Based Access Control. Unless you specify a path
### Starting with A/, the file's location is relative to
### Directory containing this file. If you don't specify
### Authz-DB, no path-based access control is done.
### Uncomment the line below to use the default authorization file.
Authz-DB = authz # file used by the user permission library, which corresponds to the above authz
After completing the above steps, we can create a Windows service on the target server so that the svn service is automatically started every time the computer starts.
Enter the following in cmd:
SC create svnserve binpath = "D:/subversion/bin/svnserve.exe -- service-R D:/svnroot" Start = auto displayname = "SVN server" depend = TCPIP
If the path fails, enter
SC Delete svnserve to delete a service
The client uses the check out command of the menu to check out files on SVN.
For example, if the local machine is detected, enter SVN: // 127.0.0.1/ljsvn/in the URL bar.