Install SVN Server
The steps to install SVN on windows as a service are listed below.
Download the latest Subversion Windows binary installer from svn windows binary installer download. At the time of writing, that's 1.67. Then install it. (It’s better to override the default install path and going with something shorter as C:\svn\).
The SVN installer adds c:\svn\bin to the installation path and can launch a command prompt and start working with it immediately.
Then create the first source repository using following command.
svnadmin create "C:\svn\repository"
Within that newly created ‘repository’ folder, uncomment the following lines in the conf/svnserve.conf file by removing the pound character from the start of each line:
anon-access=none
auth-access=write
password-db=passwd
Next, add some users to the conf/passwd file. Uncomment the default harry and sally users to play with, or add own users:
harry=harryssecret
sally=sallyssecret
Then to install Subversion as a Windows service issue the following command:
sc create svnserver binpath=”c:\svn\svnserve.exe --service –r c:\svn\repository”
displayname=”Subversion” depend=Tcpip start=auto
It's set to auto-start so it will start up automatically when the server is rebooted, but it's not running yet. To fix that,issue the following command:
net start svnserver
Access SVN Server by clients
Most people use TortoiseSVN to interact with Subversion. Download the latest 32-bit or 64-bit Windows client (1.6.7 as of this writing) from http://tortoisesvn.net/downloads and install it.
svn:// is specified as the prefix to our source control path, which means we're using the native Subversion protocol. The Subversion protocol operates on TCP port 3690.
So as an example you can access your SVN repository by typing following url in IE browser;
svn://localhost/yourRepositoryName/
Comments
Post a Comment