Linux system environment to build SVN server environment detailed:
The main content of this article is how to build the SVN server under the Linux system, the purpose is to implement the Code version control management very well, as follows:
First, install the required package
Installing the SVN service tool #yum Install subversion---
#yum Install HTTPDMOD_DAV_SVN mod_perl---to support web-managed SVN services
#yum install Wgetmake Unzip perl*---the necessary packages
Second, SVN service configuration
1. Create a new directory to store the SVN configuration file
#mkdir/project
#mkdir/PROJECT/SVN
2, create a new version of the warehouse
#svnadmin Create/project/svn/project
3. Initialize the repository directory file
#mkdir projectproject/server project/clent Project/text---temp directory
#svn Import project/file:///project/svn/project-m---Initialize the catalog file
#rm –RF Project---Delete a temp directory
4. New Users
#cd/project/svn/project/conf
#vim passwd
[Users]
#harry =harryssecret
#sally =sallyssecret
Pm=pm_root # # #username =password
Server_group=server_root
Client_group=client_root
Test_group=test_root
5. User Access Policy restrictions
#cd/project/svn/project/conf
#vim Authz
[Groups]
PROJECT_P=PM # # #group =user
Project_s=server_group
Project_c=client_group
Project_t=test_group
[project:/]
@project_p =RW
*=
[Project:/server]
@project_p =RW
@project_s =RW
*=
[Project:/client]
@project_p =RW
@project_c =RW
*=
Note:
Only PM users have root directory read and write permissions, Server_group only read and write server directory permissions, Client_group only read and write client directory permissions
6. The above configuration is effective
#cd/project/svn/project/conf
#vim svnserve.conf
[General]
Anon-access=none
Auth-access=write
password-db=/project/svn/project/conf/passwd
Authz-db=/project/svn/project/conf/authz
Third, start the SVN service
#svnserve –D–R/PROJECT/SVN
Iv. Testing SVN Services
# SVN Cosvn://192.168.1.56/project
Authentication Realm: <svn://192.168.1.56:3690>92731041-2dae-4c23-97fd-9e1ed7f0d18d
Password for ' root ':
Authentication Realm: <svn://192.168.1.56:3690>92731041-2dae-4c23-97fd-9e1ed7f0d18d
username:pm
Password for ' PM ':
A Project/test
A Project/server
A project/client
Checked out Revision 1. (Test extraction succeeded)
Finally, we can use putty, SSH clients (different system platforms) to access the current SVN server and manage the code synchronously.
Mobile Internet Technology Group (i) 179914858
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Linux system Environment Build SVN server environment detailed