Windows SVN Server Configuration

Source: Internet
Author: User
Tags ultraedit

1. Download the file,  download the latest version of subversion, here I choose visualsvn-server-2.5.7.exe 2. Install Subversion server   because I downloaded the setup.exe version, System variables are set automatically after Setup is installed. If you download a zip version, you will need to manually set the system variables. The  setup.exe version can be installed directly. Install to D:/program files/subversion  first create SVN repository (repository)  svnadmin Create f:/svn/ repository creates several files and folders in the directory after creation, and the DAV directory is a directory for Apache and MOD_DAV_SVN to use. Let them store internal data; The DB directory is the data file for all version control; the directory where the Hooks directory places the hook script files; the directory where the locks is used to locate the lock data of the Subversion vault, which is used to track the client accessing the vault; The format file is a text file. It only contains an integer that represents the version number of the current vault configuration;  3. Configure SVN server   (this location is where you build the repository f:/svn)   Open/conf/directory, open svnserve.conf find two sentences:  # [general] # password-db = passwd # anon-access = none # auth-access = write  go to the beginning of each line #, The second line is the name of the specified authentication file, which is the passwd file. anon-access = None is anonymous user cannot access, must have a user name and password. (Note: The problem is in this, be sure to note the format after removing the comments to shelf cannot be empty)   also open passwd file, will  # [users] # Harry = harryssecret # sally = The sallyssecret         format is "User name = password", as can be inserted one line: admin = admin888, That is to add a user named admin, password for admin888 user  4. Run SVN server   run SVN service    svnserve--daemon--root f:/svn  service starts at the command line,--daemon can be shortened to-R, You can set up a batch file and put it in the Windows Startup group to run the SVN service (note: This is a temporary open service, the command can not close the window after execution)   with the background service to setup automatic execution.  d:/program FILES/SUBVERSION/BIN>SC Create Svnservice binpath= "D:/program Files/subversion/bin/svnserve.exe --service-r F:/SVN "(SC is the command for generating services in Windows)   can start the service with net Svnservice stop or start, or it can be started in sevices.msc.  5, Client Access   format: svn://server ip   ---------------------------------------------------------- -----------------------------------------------    Svnserve-based server, permissions file Authz configuration FAQs     Recently in my use of the Subversion Forum (Http://www.iUseSVN.com/bbs) often someone mentions such questions:  why my client does not have write permissions?   Why doesn't my permissions work?   summarize their configuration and discover that   is using Svnserve as server,  all authz-db options are used in svnserve.conf   reasons may be as follows:  1, configuring Authz, The directory specified by the Svnserve startup parameter-R is not noted.   Here are two things:  a:-r directly to the repository (called Library Svnserve mode)   For example, there is a library Project1, which is located d:/svn/project1  use the following command to start Svnserve  [copy to clipboard] [-]code: svnsErve-d-R d:/svn/project1  in this case, a svnserve can only work for a repository  authz files if configured to the following is wrong,  [copy to clipboard] [-] code: [groups] admin=user1 dev=user2 [project1:/]  @admin =rw  @doc =r  should be configured as  [copy to clipboard] [-]code: [groups] admin=user1 dev=user2 [/]  @admin =rw @ doc=r  because [project1:/] represents the root of the library Project1, and by the startup parameters above, there is no library concept.   Use a url:svn://192.168.0.1/like this to access the project1 b:-r assigned to the repository's parent directory (called multi-Library Svnserve mode)   Similarly, there is a library Project1, located in D :/svn/project1  If you use the following command to start Svnserve [copy to clipboard] [-]code: svnserve-d-R d:/svn  this case, A svnserve can work for multiple repositories,  at this point, if you want to restrict the specified directory of the specified library, you should specify a specific library, like this  [copy to clipboard] [-]code: [groups]  admin=user1 dev=user2 [project1:/]  @admin =rw  @doc =r  If you use [/] at this point, it means the root of all libraries, similarly, [/SRC] Represents the SRC directory under the root directory of all libraries   uses a url:svn://192.168.0.1/project1 like this to access project1  such url:svn://192.168.0.1/project2 You can access project2 2, when you control the Chinese directory, the permissions file is not Authz changed to uTf-8 format.  SVN for non-English filenames and directory names using utf-8 format encoding processing, to correct control of the Chinese catalog,  should use the Utf-8 format without BOM, how to convert the default file to utf-8,  I'm using the UltraEdit menu. "ASCII to UTF-8 (Unicode Editing)". In the UltraEdit configuration, you can set the bom 

SVN server configuration under Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.