1. First check if subversion is installed on the operating system
Rpm-qa Subversion
2. Install Subversion
Yum-y Install Subversion
3. Specify the data storage path for SVN
Mkdir-p/usr/local/svn/data
4. Specify the SVN profile information path
Mkdir-p/usr/local/svn/configure
5. Start the SVN service
Svnserve-d-r/usr/local/svn/data/
6. Create a Zhibo version library
Svnadmin Create/usr/local/svn/data/zhibo
Svnadmin Create/usr/local/svn/data/wangzhan
7. Go to the Zhibo repository configuration directory and back up the configuration file
cd/usr/local/svn/data/zhibo/conf/
CP Svnserve.conf/usr/local/svn/configure
8. Modify the svnserve.conf configuration file
Cd/usr/local/svn/configure
Vim svnserve.conf
Anon-access = none//Prohibit anonymous access
auth-access = write//Read permission after authentication
PASSWORD-DB =/usr/local/svn/configure/passwd//Specify Password file
AUTHZ-DB =/usr/local/svn/configure/authz//Specify Permissions Authentication file
9. Copy the passwd and Authz files to the Zhibo svnpasswd directory and modify the permissions
Cp-p Authz passwd/usr/local/svn/configure/
Cd/usr/local/svn/configure/
chmod Authz passwd
10. Create a user for the SVN repository and authorize access to the specified project repository
Vim passwd
Wang = Wang
Vim Authz
[/]
Wang = RW
11. Restart the SVN service for verification
Pkill Svnserve
Svnserve-d-r/usr/local/svn/data--config-file=/usr/local/svn/configure/svnserve.conf
This article is from a "little progress every Day" blog, make sure to keep this source http://zuoshou.blog.51cto.com/2579903/1876570
Linux SVN Server version 2.0