SOURCE directory:/home/user/project
Project Name: Project
Project Catalog:/source/svn/project
Access Address: Svn://ip/project
First, install SVN
Yum Install Subversion
Two, SVN server configuration 1. Create the SVN root directory
mkdir /SOURCE/SVN
2. Add a Project
Svnadmin Create/source/svn/project
3. Import the project initial document (can save)
file:///source/svn/project-m "Init project"
4. Configure the Engineering user
Enter the configuration directory for the project:
Cd/source/svn/project/conf
The following altogether three files: Authz passwd svnserve.conf
passwd: The user information is stored inside, the basic format is: User = passwd
Authz: Store the user's group information, and the access rights of each group
SVNSERVE.CONF: Store the basic configuration of the server (described below)
The configuration for this example is as follows:
4.1 passwd inside Add user
[users] = pm123
4.2 Authz Configuring User rights
[groups] #添加一个分组 (In fact, you can add multiple, each group can have multiple users ,= pm# The project's permissions configuration [project:/] = RW
4.3 svnserve.conf configuration (can default)
= = = =/source/svn/project/conf/authz
Third, start the SVN server
Svnserve-d-R/SOURCE/SVN
Four, pull the replacement code
SVN Co SVN://ip/project
CentOS SVN Server Setup