Installing SVN server in Windows OS.

来源:互联网 发布:手机淘宝修改评价链接 编辑:程序博客网 时间:2024/05/17 04:29

研究了下SVN服务器端的安装过程。

 

Installing SVN server in Windows OS.

 

1.download the installer package. Setup-Subversion-1.6.15.msi

2.double click the msi file.

3.next until finishing the installer.

 

4.create a directory for the root of svn. for example, D:/MySvn

5.create a service for svnserve for start svnserve when starting up OS.

 

cmd->sc create svnservice binpath= "C:/Subversion/bin/s

vnserve.exe --service -r D:/MySvn" displayname= "SVNService" depend= Tcpip start= auto

 

6.create a respository in the svn root directroy.two methods

a.svnadmin create D:/MySvn/repo1

b.or if installing the client TortoiseSVN: go to the root directory(for example, D:/MySvn), create a dir( for example, repo1), then select this dir and right click->tortoiseSVN->create a repository here.

check if some files and dir are creatd in this dir(here is repo1)

 

7.test if the respository is created successfully or not.

first install the client TortoiseSVN, then right click->tortoiseSVN->repo-browser->url:svn://localhost/repo1, if ok, congratulation.

 

8.priviledge control

go to the repository directory(here is repo1),go to the folder conf, there are three files need to be modidifed.

a.svnserve.conf

uncomment the line.

# password-db = passwd

note no blank at the beginning of the line.

 

b.passwd

add the mapping of user and password

for example,

test = test

 

c.authz

control the user priviledge including read and write on the repository.

for example, the following lines will grant the user test the priviledge read and write on the repo1.

[d:/mysvn/repo1]

test = rw

原创粉丝点击