Install and configure the svn server in Windows
I recently set up the svn server and summarized the setup process, hoping to help more friends.
1. download and install the svn client View software "turtle SVN" under Windows"Official Website: http://tortoisesvn.tigris.org /. The latest 32-bit Windows version is: TortoiseSVN-1.6.7.18415-win32-svn-1.6.9.msi, size 19 MB, the author uploaded a copy to the csdn resources, download connection address: http://download.csdn.net/source/4264092.
After the installation is successful, open any folder on my computer and right-click it. tortoisesvn is available in the shortcut menu. In fact, it doesn't matter whether the installation of the tortoise is not installed, especially for friends who like the command line.
2. download the latest SVN Installation File., Official website is: http://subversion.tigris.org/servlets/ProjectDocumentList? Folderid = 8100. Select the latest SVN Installation File for download. Latest Setup-Subversion-1.6.5.msi, size
7.4 mb. The author uploads a copy to the csdn resource. Download link address: http://download.csdn.net/source/4244114.
3. Install SVN on my computer. It is best to use a Chinese path without spaces. Double-click the Setup-Subversion-1.6.5.msi-> enter the svn installation welcome interface, click "Next"-> enter the copyright related declaration interface, click "Next"-> enter the installation directory selection interface, the author chooses F: /tools/SVN, click "Next"-> enter the installation confirmation page, click "Install"-> the installation end page, and click "finish" to end the installation.
Open the C:/autoexec. BAT file and edit it. Add the following information:
Set apr_iconv_path = "F:/tools/SVN/iconv"
Restart your computer.
4. Create a SVN Repository. Run the following command on the command line:
Svnadmin create F:/tools/SVN/Repository
At this time, the svn installation directory contains the repository folder generated.
5. Server Configuration. Open the F:/tools/SVN/Repository/conf directory, open svnserve. conf, and find the following two lines:
# [General]
# Password-DB = passwd
Remove the '#' at the beginning of each line, and the second line specifies the authentication file name, that is, the passwd file. Save.
Open the passwd file in the same directory and find the following lines:
# [Users]
# Harry = harryssecret
# Sally = sallyssecret
Remove the beginning of each line # (remember to delete it # There cannot be spaces on the front side of the line, otherwiseSVN: F:/tools/SVN/Repository/CONF/svnserve. conf: 20: Option expectedError). This is the set user. One row is stored in the format of "username = password". If you can insert a row: Admin = admin123, you can add a username admin to the system, the password is admin123. Save.
6. Run the svn Service. Command Line execution:
Svnserve -- daemon -- root F:/tools/SVN/Repository
Start the service. Of course, you can also create a batch processing file and place it in the Windows Startup Group to run the svn service on startup.
7. Create a batch file and start the svn Service. Create a new notepad file, rename it "svnserver. Bat", and save it in the F:/tools/SVN/svnbat directory. edit the file as follows:
@ Echo off
The SVN server has been started ......
Open the Registry Editor and find the HKEY_LOCAL_MACHINE/software/Microsoft/Windows/CurrentVersion/run item. Open the option "REG_SZ" and "(default, value Data Input"F:/tools/SVN/svnbat/svnserver. bat". Note that you must enclose the quotation marks and save them.
When the computer is started again, the svn service is started.
8. Create a version tree for our project. After the svn Service (command line or Windows Service) is run, add the system variable "svn_editor" with the value "C:/Windows/notepad. EXE ". For example, if the project name is "myprojects", a new cmd window is opened and the command line is executed:
SVN mkdir SVN: // localhost/myprojects
Close the log file window opened in notepad and press "c" to continue and generate the project tree.
The user name and password are required to generate the project tree. Enter the user name Harry in the passwd file and the password harryssecret.
To create a version tree for other projects, you only need to replace "myprojects" with the specific project name.
OK. The installation and configuration of the svn server are now complete. Use in LAN
SVN: // 192.168.6.117/myprojects
Project resources can be shared (the author's intranet IP address is 192.168.6.117 ).
See http://www.duduwolf.com/post/setting_up_subversion.asp.
See http://blog.csdn.net/zhoushengchao/archive/2010/03/12/5108675.aspx.