1, download the relevant tools, the code is as follows:
wget Http://subversion.tigris.org/downloads/subversion-1.6.1.tar.gzwget http://subversion.tigris.org/downloads/ Subversion-deps-1.6.1.tar.gz
2. Installation and Configuration
(1) Unzip the downloaded file package, the code is as follows:
TAR-ZXVF SUBVERSION-1.6.1.TAR.GZTAR-ZXVF subversion-deps-1.6.1.tar.gz
(2) Compile the installation operation, the code is as follows:
./configure--prefix=/usr/local/svn/make && make install
(3) Configure the SVN environment variable with the following code:
echo "Export path= $PATH:/usr/local/svn/bin/" >>/etc/profilesource/etc/profile
3, the establishment of a test warehouse, the specific code is as follows:
Mkdir-p/opt/svn/svntest/svnadmin create/opt/svn/svntest/
4, modify the SVN configuration file, the operation is as follows:
Using the CD command directory/opt/svn/svntest/conf directory, you will find three files:
Svnserve.conf SVN configuration file
Authz Set User Rights profile (Note: File name can be customized, open svnserve.conf file found authz-db = Authz can be changed)
passwd set user name and password profile (Note: svnserve.conf file is found after opening password-db = passwd can be changed)
The specific code operation is as follows:
(1) Use the command vim svnserve.conf file, modify the content as follows:
[general]anon-access = noneauth-access = writepassword-db = Passwdauthz-db = Authz
(2) Use the command vim Authz file, modify the content as follows:
[svntest:/]www.yoodb.com = rw#svntest Test Warehouse increased www.yoodb.com user rights writable
(3) Use the command vim passwd file, modify the content as follows:
www.yoodb.com = 123456# Password set arbitrary, I set to 123456
5. Start the SVN server and set up the root directory with the following command:
Svnserve-d-r/opt/svn/
Check to see if the service is starting properly, with the following command:
Netstat-tunlp|grep SVN
If the results show that listening on port 3690 is OK, the boot succeeds.
Source: http://www.yoodb.com/article/display/302
Installing SVN server in CentOS version of Linux system