Setting up SVN on Windows is simple, but not efficient, of course, compared to Linux. However, it is very cumbersome to build SVN on Linux, and this article will teach you step-by-step how to build svn on CentOS.
SOURCE directory:/home/user/project
Project Name: Project
Engineering Catalog:/source/svn/project
Access Address: Svn://ip/project
First, install SVN
Yum Install Subversion
Two, SVN server configuration
1. Create SVN root directory
Mkdir/source/svn
2. Add Project
Svnadmin Create/source/svn/project
3. Import Project initial document (May province)
SVN import/home/user/project/file:///source/svn/project-m "Init project"
4. Configure the project user
Access to the project configuration directory:
Cd/source/svn/project/conf
Altogether three files below: Authz passwd svnserve.conf
passwd: Inside save user information, the basic format is: User = passwd
Authz: Inside saves the user's grouping information, as well as each group's access rights
Svnserve.conf: Inside Save the basic configuration of the server (described below)
The configuration for this example is as follows:
4.1 passwd inside Add user
[Users]
PM = pm123
4.2 Authz Configure user permissions
Copy Code
[GrouPS]
#添加一个分组 (in practice, you can add multiple, each group can have multiple users, separated)
Pm_g = PM
# Permission configuration for this project
[project:/]
# pm_g group configuration Read and Write permissions (can actually increase read-only groupings)
@pm_g = RW
4.3 svnserve.conf configuration (can be default)
# Anonymous user rights (none: Deny, write: Read/write, read: Read only)
Anon-access = None
# Authentication User Access
auth-access = Write
# User Information profile (can also be an absolute path)
Password-db = passwd
# permission Profile
Authz-db =/source/svn/project/conf/authz
Third, start the SVN server
Svnserve-d-R/SOURCE/SVN
Four, pulls replaces the code
SVN Co svn://ip/project