The download and installation of subversion
Subversion's official website: http://subversion.tigris.org/
The latest version of subversion can be downloaded from the official website. This note uses the Win32 version of 1.1.4.
After downloading the Subversion installation file, install it directly. This assumes that Apache has been installed on the system, so that when the subversion is installed, it will automatically configure the associated modules into Apache by choosing the Apache approach.
Second, the establishment of subversion and use of warehouse use.
$svnadmin Create/path/to/repos
Here, we assume that set D-disk SVN directory under the SVN1 and svn2 two directories for the warehouse.
Svnadmin Create D:/svn/svn1
Svnadmin Create D:/svn/svn2
In this way, when we use it, we can submit the file to it.
The use of warehouses, the service must be set up before the line. We will wait for the following server configuration to speak again.
Third, the Subversion server to build
We use the Apache module as a way to run.
First, to load the SVN module we need, modify the Apache configuration file httpd.conf:
LoadModule Dav_svn_module modules/mod_dav_svn.so
LoadModule Dav_module modules/mod_dav.so
LoadModule Authz_svn_module modules/mod_authz_svn.so
Then configure the warehouse:
<Location/svn>
DAV SVN
Svnparentpath D:/SVN
</Location>
Then, configure the authentication method:
Here's how to use the authentication method of Dan Apache:
HTPASSWD-CM D:/svn/svn-auth-file User1
Then, you will be prompted for a password and a user is added here. And then add one more user:
Htpasswd-m d:/svn/svn-auth-file User2
Then modify the configuration:
<Location/svn>
DAV SVN
Svnparentpath D:/SVN
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile D:/svn/svn-auth-file
Require Valid-user
Authzsvnaccessfile D:/svn/svn-access-file
</Location>
Below, it is necessary to write this svn-access-file file, which is used to control the user access to the warehouse permissions, we write the instructions in the back
[svn1:/]//This means that access rights under the root directory of the warehouse svn1
Harry = RW//SVN1 warehouse Harry User has read and write permissions
Sally = r//SVN1 warehouse Sally User has Read permission
[svn2:/]//SVN2 access rights under the warehouse root directory
Harry = r/Harry users only Read permissions under the SVN2 warehouse root directory
Sally =//Sally user does not have any permissions under the Svn2 warehouse root directory
#[/]//This representation is in the root directory of all warehouses
#* = r//This representation has read access for all users
#[groups]//This representation group setting
#svn1-developers = Harry, Sally//This represents a group of members
#svn2-developers = Sally
#[svn1:/]
# @svn1-developers = RW//If preceded by the @ symbol, this is a group permission setting
After this setting is complete. Restart Apache, you can go through the
Http://localhost/svn/svn1
Http://localhost/svn/svn2
These two URLs to access the warehouse, of course, to be restricted by permissions, must be legitimate users to access and have the appropriate permissions
The use of the client is available through many client GUI software. For example, TORTOISESVN is very useful.
Official website: http://tortoisesvn.tigris.org/
This article from Csdn Blog, reproduced please indicate the source:
Http://www.po-soft.com/blog/xujianhua/152.html