Build SVN server in Windows
1. Software
1) server: Subversion
Subversion.apache.org-getting subversion-Binary packages-Windows-win32svn-files-1.6.16-svn-win32-1.6.16.zip
Decompress svn-win32-1.6.16.zip to c: \ My program files
2) Client: tortoisesvn
Tortoisesvn.tigris.org-tortoisesvn.net/downloads-tortoisesvn 32-bit-memory
Direct Installation
2. Steps
1) add c: \ My Program Files \ subversion \ bin to the environment variable (not necessarily required)
2) create directory e: \ svn_repository \ SVN
3) Enter E: \ svn_repository \ svn-right-click-tortoisesvn-creat repository here
Or enter the following command in cmd:
C: \ My Program Files \ svn-win32-1.6.16 \ bin \ svnadmin create E: \ svn_repository \ SVN
4) Open E: \ svn_repository \ SVN \ conf \ svnserve. conf in the text and change "# password-DB = passwd" to "password-DB = passwd"
5) Open E: \ svn_repository \ SVN \ conf \ passwd in the text and add the user "root = PWD"
6) Add a system service: Under cmd (there must be no space before the moderate number in the command line and a space after the equal sign)
C: \> SC create svnserver binpath = "C: \ My Program Files \ svn-win32-1.6.16 \ bin \ svnserve.exe -- service -- root E: \ svn_repository "displayname =" svnserver "depend = TCPIP start = auto OBJ =" nt authority \ NetworkService"
[SC] createservice success
7) SVN usage is not mentioned.
3. Possible Problems
1) The error "cannot open the file" E: \ svn_repository \ SVN \ dB \ txn-current-lock "occurs during commit: access is denied ."
Solution: Set the write permission for the E: \ svn_repository directory. the user group "Administrator/users" must have the modification and write permissions.
Open E: \ svn_repository directory-tool-Folder option-View-do not select "use simple file sharing"-OK-Right-click a blank space-properties-security-select Users Group-select "allow ""modify" and "write"
2) "[SC] openscmanager failed 5:" error when adding system services in Windows 7
Solution: start -- all programs -- attachments -- (right-click) command prompt -- run as Administrator
3) "error 5 Access Denied" occurs when the service is started"
Work und: Add User user permissions to the C: \ My Program Files \ svn-win32-1.6.16 folder
Right-click the folder -- properties -- Security -- add "users" user -- default permission.
4) "error 1053" occurs when the service is started"
Check whether the E: \ svn_repository folder is created
4. Others
1) delete a service
C: \> SC Delete svnserver