Installation and configuration of SVN under Linux (Mode yum)

Source: Internet
Author: User
Tags create directory svn client

    • Installation of SVN

    #svn的下载安装命令

Yun-y Install Subversion

#检查是否安装成功

Svnserve--version

#表示安装成功 (You can see the version number in which you installed it 1.6.11)

    

    • Configuration of SVN

    # Create a repository directory for SVN libraries (mkdir is the Linux Create Directory command)

    Mkdir/depot/svn/svndepot

# Specify the SVN repository (SVN will generate some required files in this directory)

Svnadmin Create/depot/svn/svndepot

Post-build directory structure

    

CONF: Permissions to configure SVN members, account passwords, etc.

DB: Version data store directory

Format: A file that stores an integer that represents the library hierarchy version

Hooks: Store the Repository hook directory

Locks: A visitor to track a library

# # # Modify configuration information for SVN libraries

#添加账号 (Edit conf/passwd)

vi/depot/svn/svndepot/conf/passwd

Added an account with a Chenfei password of 123456

    

#修改账号权限

Vi/depot/svn/svndepot/conf/authz

Modify the permissions for Chenfei to read and write RW (read write)

    

[/] indicates that the directory with limited account operational permissions is the root directory

[/foot/bar] indicates that the directory with limited account operational permissions is/foo/bar

[Groups] represents a group of users, in the format group_name = user1,user2 multiple users separated by commas.

@group_name = RW assign read and write permissions to accounts under this group

[Repository:/baz/fuz] indicates permission control for/baz/fuz/directory under the repository named repository

* = R indicates that all users are assigned permission to read permissions

    

#指定已添加的账号及权限的配置文件地址

VI svnserve.conf

    

    

Anon-access:none not authorized user Optional [read none write]

Auth-access:write assigning rights to read-write optional for users after authorization (login) [Read none write]

AUTHZ-DB = Authz: User Rights profile is Authz file under current directory (CONF)

Password-db = passwd: The account profile is the passwd file under the current directory (CONF)

Realm = My First Repository: Displays the name of the client when viewing files on the SVN server

    

    

    • SVN service start and stop

#服务启动 (/depot/svn/starts the directory where the SVN library is located)

Svnserve-r-d/depot/svn/

#服务停止

Killall Svnserve

    • SVN's Test
      1. The client installs the SVN tool.
      2. Right-click to select SVN Checkout input SVN address (svn://192.168.1.1/depot/svn/svndepot/)
      3. Update the files in this directory to local (the service you just created is an empty file)
      4. Test create a new file commit to the server to test whether the save was successful
    • Summarize
    1. There are two ways to configure permissions and account configuration on the Internet. An auto-generated Authz and passwd file is used. One is to generate authz.conf and passwd files yourself. The first time I tested it was the way I built it. The commit does not appear in the Login input box. However, the submission shows that the user is not authorized (no permissions). Maybe I have a problem with my own configuration. It is recommended that the novice use the system auto-generated file configuration.
    2. SVN address input at the end of the last try to add/not add issues that may occur without permission
    3. Do not restart the configuration file on the SVN server after you modify it
    4. Configure the account password when the user name when the first line does not have a space or error. This is also true when configuring svnserve.conf
    5. The SVN version of the server and client can be inconsistent
    6. The SVN client has previously configured an account password and the SVN repository address is the same, and the account password does not simultaneously clean up the SVN account password. Right-click Tortoies SVN >settings>saved data>authentication Data >clear or Clear all. Clear can choose to clean the account password for the specified library address. Clear all means clean up all
    7. If you encounter problems, you can comment on them. We are happy to answer your questions. such as the wrong place in the blog also please comment, look forward to your correction.

Date: 2017-05-06 03:09:04

Installation and configuration of SVN under Linux (Mode yum)

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.