Windows-based svn installation and configuration, windowssvn Configuration
[Author]: kwu
Install and configure svn Based on windows
1. Install Subversion
Download Setup-Subversion-1.8.13.msi
2. Install the TortoiseSVN-1.8.11.26392-x64-svn-1.8.13, which is the auxiliary management software of svn.
Download TortoiseSVN-1.8.11.26392-x64-svn-1.8.13
3. Create a warehouse and use TortoiseSVN for convenience
4. Create a windows Service and run the following command on the cmd command line:
sc create svnserve binPath= "D:/softwares/Subversion/bin/svnserve -r d:/svn/root --service"
1) Specify the svnserve path. binPath is the location where the service command is to be set.
2) Specify the storage path of the svn repository, and-r sets the root directory location of the svn service.
-- Service means to start this command in the form of a windows service, that is, a command named svnserve will be added to the windows service.
3) Delete windows Service commands
SC create is used to add a service to the windows service, and SC delete deletes a service in the windows service.
5. svn permission Configuration
1) svnserve. conf file
Anon-access = none
Auth-access = write
Password-db = passwd
Authz-db = authz
Note:
Auth-access = write # verified users can read and write
Auno-access = read # read-Only files can be logged on anonymously, that is, files cannot be submitted to the server after modification.
Password-db = password # name of the file saved by the user
Authz-db = authz # permission management file is very important. If we want to assign permissions to the entire project file, we must comment out the row file, no, even if we do more configuration in the permission configuration file, it is invalid. Then we will assign permissions under the authz file.
2) set the user name and password in the passwd file
[Users]
Admin= 123456
Kwu = Abcd1234
3) set the user access permission for the directory in the authz file. rw is set to "read/write"
[/]
Admin = rw
[/Code]
Kwu = rw
6. Right-click the TortoiseSVN client and choose TortoiseSVN --> Repo-browser.