Install and use SVN version management tools
I. Experimental environments VMware 10 and redhat5.6
1. SERVER: RedHat 5.6
subversion i386 1.6.11-7.el5 subversion-devel i386 1.6.11-7.el5 subversion-javahl i386 1.6.11-7.el5 subversion-perl i386 1.6.11-7.el5 subversion-ruby i386 1.6.11-7.el5
2. Client: Window 7
TortoiseSVN-1.8.7.25475-x64-svn-1.8.9
Ii. SVN service deployment
1. Install the svn Service
# yum install subversion*[[email protected] svndata]# svnsvn svnadmin svndumpfilter svnlook svnserve svnsync svnversion
A Brief Introduction to the use of each tool:
SVN:
Svnadmin:
Svndumpfilter:
Svnlook:
Svnserve:
Svnsync:
Svnversion:
2. Create a version library directory
mkdir -p /svn/app1/svndata/repos
3. Create an SVN version Library
svnadmin create /svn/app1/svndata/repos
After executing this command, SVN automatically adds the required configuration file under the repos directory.
4. Modify version library configuration file Parameters
(1), VIM/SVN/app1/svndata/repos/CONF/svnserve. the conf parameter functions are described in the remarks in the configuration file. The configuration is as follows: [general] anon-access = none # Make unauthorized users unable to access auth-access = write # Enable authorized users to write password-DB = passwd # specify the password file path authz-DB = authz # access control file realm =/SVN/app1/svndata/repos # authentication namespace, the Subversion is displayed in the authentication prompt and serves as the key word cached by the credential. Others adopt the default configuration. Each statement must be written in the top level, and no space is left. Otherwise, an error occurs. Instruction Description: This is the format of the svn configuration file. Please follow the above format. (2) configure the user authentication information Vim/SVN/app1/svndata/repos/CONF/passwd and enter the following content: [users] <user 1 >=< password 1> admin = admin <user 2 >=< password 2> username2 = password2 can be added multiple times. This is the user name and password pair (3) configure the permission information Vim/SVN/app1/svndata/repos/CONF/authz Description: [groups] Two user groups are created, they are harry_and_sally and harry_sally_and_joe. The right side is the member account in the group. The [/Foo/bar] project path Harry = RW Harry user has the read and write permissions on the/Foo/bar project Path & Joe = R & Joe User has read permission * = no user has read or write permission [Repository: /Baz/fuz] Projects in the repository Repository Path/Baz/fuz @ harry_and_sally = RW harry_and_sally users in the user group have the read and write permissions * = R. All accounts have the read permission command introduction: this configuration file adopts the "Path-based authorization" policy, which specifies the path in brackets. The following lists the authorization policies for users. Including read-only R and read/write RW. Users not listed are not allowed to access. You can also group users. For details, refer to the svn Manual. The following is a simple example: User Group format: [groups] <user group name >=< user 1>, <user 2> where, one user group can contain one or more users separated by commas. For example: [Repository:/] version library directory format: [<version library>: /project/directory] @ <user group name >=< permission> <user name >=< permission> the content in the box number can be written in multiple ways:/, indicating the root directory and the following. The root directory is specified when svnserve is started. We specify/opt/svndata. In this way,/sets permissions for all version libraries. Repos1:/, indicating that the repos2:/ABC permission is set for version 1, indicating that the repos2:/ABC/AAA permission is set for the ABC Project in version 2 ,, set the permission subject for the AAA directory of the ABC Project in version library 2 to a user group, user, or *. Add @ to the user group, and * to indicate all users. The permission can be w, R, wR, or null. If it is null, no permission is granted. Example 1: [group] admin = test [repos:/] @ admin = RW * = r Note: Configure auth, passwd, and svnserve. conf must be fine-tuned; otherwise, authentication will fail during client access. If it cannot be accessed, Baidu and Google have a lot of information for reference. After the configuration is complete, start SVN: the default SVN port is 3690.
This article is from the blog "happy life of Xiao". I will not repost it!