Svn (subversion) is a version management tool that has emerged in recent years and is the successor of cvs. Currently, most open-source software uses svn as the code version management software. Svn servers can run in two ways: independent servers and integration with apache. The two methods have their own advantages and disadvantages. I will introduce it...
Svn (subversion) is a version management tool that has emerged in recent years and is the successor of cvs. Currently, most open-source software uses svn as the code version management software.
Svn servers can run in two ways: independent servers and integration with apache. The two methods have their own advantages and disadvantages.
I will introduce the first installation method.
Platform introduction:
Redhat 5.4
Subversion 1.6.17
Required software package:
Files such as support libraries for subversion-deps-1.6.17.tar.gz svn
Http://subversion.tigris.org/downloads/subversion-1.6.17.tar.gz
Main program for subversion-1.6.17.tar.gz svn
Http://subversion.tigris.org/downloads/subversion-deps-1.6.17.tar.gz
1. prepare the environment. first, configure the yum environment. here we will not talk about the compilation environment yum groupinstall "X Software Development" "Development Libraries" "Development Tools"
2. Compile and install svn Upload requires two packages Unzip: tar xvf subversion-deps-1.6.17.tar.bz2 tar xvf subversion-1.6.17.tar.gz unzip the two packages they will be placed in the same directory cd subversion-1.6.17
./Configure -- prefix =/opt/svn -- without-berkeley-db
-- Prefix is the installation directory -- without-berkeley-db is not applicable to dbd storage.
Install later
Make & make install
Then add the location variable
PATH = $ PATH:/opt/svn/bin
Export PATH
# Svnserve -- version
If the version number is displayed, for example:
Vnserve, version 1.6.17 (r1128011)
Compiled Aug 25 2011, 13:00:16
Indicates that the installation is correct.
3. configure svn
The system uses the policy of creating a version library for each project. Configuration files, password files, and access control files are all stored in the conf Directory of the version Library. Therefore, each time you start a new project, you must create a new version library and reconfigure the configuration files. It is also important to ask the team members to reconfigure the client, including the server version library path, local path, and other information.
Create directory:
# Mkdir-p/data/svn/repo1
# Svnadmin create/data/svn/repo1 create a directory as a svn Library
# Cd/data/svn/repo1/conf
# Vim svnserve. conf edit the configuration file to enable the following three items
Anon-access = read Anonymous
Auth-access = write authentication writable
Password-db =/data/svn/repo1/conf/passwd. conf user account and password location
# Vim passwd. conf
[User]
Neo = 123
Tina = 1, 123
Format:
[User]
User = passwd
3. start the service
# Svnserve-d-r/data/svn/repo1/
-D. enable the daemon later.
-R svn repository address
# Netstat-tnlp | grep 3690 check whether the service is enabled
This article is from the "I and linux" blog