Environment for centos6.3
1. First look at the machine installed SVN no
Rpm-qa |grep SVN
2. If no installation is performed
Yum-y Install Subversion
3. Create a new SVN directory after installation
Mkdir/home/svn
4. Create a new version repository
Svnadmin create/home/svn/Project
The red part is the version warehouse name that will be used in the configuration file
5. Put the project you need to put on SVN into the project directory 6. Initialize your repository
SVN import needs to be placed on SVN folder/file:///home/svn/project-m "Release Notes"--username xx--password xx
It is important to note that if the user name and password are not added behind, the client will not need to enter the user name and password when using the update.
7. Add Users
It's very easy to add SVN users , simply add a "Username=password" entry in the/home/svn/project/conf/passwd file. For testing, I added the following:
# Harry = harryssecret
# sally = sallyssecret
pm = PM_PW
/home/svn/project/conf/authz record the user's access policy, the following is a reference:
[groups]
project_p = pm
#[:/xxx] If you have multiple versions underneath your warehouse, XXX is the name of that folder.
@project_p = RW
* =
Note: The above information indicates that only the Project_p user group has read and write access to the root directory. R indicates that the directory has Read permissions, W indicates that the directory has write permissions, and RW indicates that the directory has read and write permissions. The last line of * = indicates that no one else is allowed to access this directory except for the user group with the permissions set above. This is very important, be sure to add!
9. Modify the svnserve.conf file to make the user and policy configuration more efficient.Svnserve.conf content is as follows:
[general]
anon-access = none
auth-access = write
password-db = /home/svn/project/conf/passwd
authz-db = /home/svn/project/conf/authz
Start the server
# ps -aux|grep svnserve
# kill -9 ID号
# svnserve -d -r /home/svn
Test Server
# svn co svn://192.168.x.x/
12.到此为止 独立svn服务器就建立好了
It is important to note that if the client wants to use
URL address It must be this way. svn://192.168.x.x/Project Watch out for Htttps's head .
配置SVN服务器的HTTP支持
CentOS Linux builds standalone SVN server full process (RPM)