Summary of how to install the svn server in linux

Source: Internet
Author: User

Summary about how to install the svn server in linux: A svn server is installed on the linux server in the past two days, but the permission issue has not been resolved. The procedure is as follows: 1. Download the installation file, such as: subversion-1.6.6.tar.gz and subversion-deps-1.6.6.tar.gz (this is my svn version installed this time) Installation Package: dependency package: 2, unzip the file and put the installation package and the dependency package in the same directory, execute the following command decompress> tar-zxvf subversion-1.6.6.tar.gz (unzip the installation package)> tar-zxvf subversion-deps-1.6.6.tar.gz (unzip the dependency package) after the two packages are decompressed, they will be in the same directory. The directory name is subversion-1.6.6, And the INSTALL Is the installation instructions file. The file contains the source file and installation file. You can directly install the file using the yum command, or compile the source file and then use the make and make install commands to install the file, however, installing the method for compiling source files is troublesome and requires a compilation environment. 3. install and enter the installation command:> yum-y install subversion. After the installation is complete, enter # svnserve -- version to check whether the installation is successful. If the installation is successful, the version information is displayed. 4. Configure and create a version inventory directory # mkdir/www/svndata to create a version library # svnadmin create/www/svndata/svnvesion, some files will be generated after the creation is successful, you need to modify these files/www/svndata/svnvesion/svnserve. conf (main configuration file)/www/svndata/svnvesion/passwd (svn user configuration file)/www/svndata/svnvesion/authz (svn permission Control Configuration File) Modify svnserve. conf file # vi svnserve. conf anon-access = none auth-access = write password-db = passwd authz-db = authz realm = svnvesion remove the anon-access comments and change them to none. Note that there must be no space before the modified file; otherwise, an error occurs. Modify the passwd file # vi passwd [users] user1 = password1 // the user name = password, multiple users use line breaks to distinguish user2 = password2 user3 = password3 user4 = password4 modify the authz file # vi authz [groups] # Set Group group1 = user1, user2 # multiple users use commas to separate [/] # root directory permission settings (that is, the "svnvesion" folder) user3 = rw # user 1 permission: user4 = r # user 2 permission: readable, not writable user = # No write represents no permission @ group1 = rw # Set Group permission [svnvesion: /abc] # Set permissions for the "123" folder under the root directory # note that the "abc" file is created after the SVN server is configured, a user with high permissions can log on to SVN on the client, then Create a folder named "abc ". 5. Generally, the svn path installed through the yum command is under the/usr/bin/directory, so the svn server command is started in this directory: # svnserve-d-r/www/svndata/svnvesion // start svn service command # killall svnserve // stop svn command

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: 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.