Windows installation:
1. Download Subversion
Description of each version:
CollabNet:
The most powerful, because SVN's founder is collabnet, but this version because of the most features, so the entire package is the most bloated, the installation package has more than 100 m, and because it is running on the Java platform, to occupy a large memory resources
SLIKSVN and WIN32SVN:
The two basic is the same, all only SVN kernel, no interface, that is, use only command line operation. The two are slightly different, such as WIN32SVN provides the library file with Apache, and SLIKSVN does not. There is no client and server side, SVN itself is both the server and the client.
VISUALSVN: Is the most fool of the SVN, installation and configuration are a graphical interface, easy to operate.
2. Install according to the Software installation method
3, configured as a system service, to avoid buying times to command line
Execute this command under DOS:
C:\>SC Create Subversion binpath= "D:\Subversion\bin\svnserve.exe--service-r e:\svnRepos" Displayname= "Svnservice "Depend= tcpip start= Auto
Note: SC is a command-line program for communicating with the Service Control Manager and the service.
(1) Parameter binpath indicates the installation path of the Svnserve executable file
(2) The--service parameter means running as a Windows service
(3)-R indicates the location of SVN repository (the repository created by Svnadmin create )
(4) DisplayName represents the name displayed in the Windows Services list
(5) BinPath has no space before the equal sign, and there is a space behind the equal sign DisplayName depend start is the same service front is--not--and R front is--
To run this line of command, the two paths are the address of the Svnserve.exe and the address of the repository (the repository address is typically the root directory of Apache, so you can build several more repositories). Start=auto, each boot automatically runs. It is important to note that the equals sign must be preceded by a space followed by the parameter value set. If the system service is installed successfully, the prompt will be successful.
4. Start the system service net start Subversion (Note: Subversion is the service name in the previous command)
Delete the created service C:\>SC Delete Svnservice
5, create SVN and directory (easy to find the SVN directory quickly, need doc under not shut down, so also do not)
Svnserve.exe--daemon--root e:\svnrepos( path to svn warehouse path )
--daemon (two dash) option tells Svnserve to run as Daemon
The--root option sets the root location to restrict the server's access to the directory, thereby increasing security and saving time for entering Svnserve URLs
6. Svnadmin Create e:\svnrepos\test (creating SVN warehouse)
7. User Rights configuration
Under each warehouse: there is a conf folder with three files below
svnserve.conf (svn config file)
Authz (Authorized)
PASSWD (Certified)
1) Configure SVN configuration file First-----svnserve.conf
# Anonymous access permissions, can be read,write,none, default to read anon-access =# Authenticated user permissions, can be Read,write,none, default is write auth-access =# The path of the user password, remove the path of the previous # password-db =# permission, remove the previous # auth-db = Authz
( Note: All profiles must be at the top of the line, meaning there is no space at the front of the current line)
2) Re-configure the authentication file-------passwd
[Users] # Harry = Harryssecret# sally = Sallyssecret# User name = password Xiaoqiang = 111xiaoming = 222Xiaozi = 333
3) Configure the authorization file--------Authz
[Groups]group1= personnel A, personnel bgroup2= personnel c[Warehouse Name:/] @group1 = rw@group2 =# Configure all users to have Read permissions, To see the logs submitted by the user themselves
8. Install TORTOISESVN on the server ( if the SVN server installation contains the client, this step can be skipped)
For the submitted files, SVN has its own set of Save methods, so when the local submission to the SVN server, the server repository does not see the submitted files, this time need to install the installation TortoiseSVN on the server, check out in the site root directory to see the submitted files
9, to achieve automatic server environment updates:
( by setting the hook (plug-in) to automatically update every commit on the local, and do not need the local each commit to the server above the manual update)
1), copy the Post-commit.tmpl file below the hook, modify the suffix. bat file, and then copy the contents
@echo OffSET repos="$"set rev= "$" settxn_name="$" setdir=% repos%/hooksset path=%path%SET work=d:/www/truckwebsvn update%work%--username cntplus--password Cntplus
D:/www/truckweb is the root directory of the current code base, after which the account password is configured (Cntplus is the account and password in the code).
10, limit must enter the log
Add Pre-commit.bat in the hooks directory, as follows:
Set repos=%1set txn=%2"%txn%"%repos%"..... "> nulgoto01>&21
Note: findstr "..." Each of the inside is represented by a character. if (findstr "...") you must enter more than three characters
To install Subversion on a Windows Server