Note: O & M personnel know that they often work with developers to build environments they need to improve development efficiency. What they face every day is code, therefore, code availability and management are crucial to development. Every time a development company receives a project, it is a team to develop the Code. As a result, many people modify some code at the same time and face some problems, such: deleting by mistake may cause a conflict with the modification to the same file. If you do not grant all permissions to some users, this will reduce your work efficiency, to solve these problems, we need a professional version management system to centrally manage these codes. There are many such version management systems. We are using SVN (subversion) and the successor of cvs this time, it is now the most widely used version management software for open-source software. If you don't need to talk about it, start to build your own version control system.
SVN servers can run in two ways: independent servers and apache (Web/DAV ).
1. Install the dependency package
[Root @ localhost ~] # Yum install gcc-++ make pcre-develzlib-devel-y
[Root @ localhost ~] # Tar zxvf apr-1.4.6.tar.gz
[Root @ localhost ~] # Cd apr-1.4.6
[Root @ localhost apr-1.4.6] #./configure -- prefix =/usr/local/apr
[Root @ localhost ~] # Make & make install
[Root @ localhost ~] # Tar zxvf apr-util-1.4.1.tar.gz
[Root @ localhost ~] # Cd apr-util-1.4.1
[Root@localhostapr-util-1.4.1] #./configure -- prefix =/usr/local/apr-util -- with-apr =/usr/local/apr
[Root @ localhost ~] # Make & make install
2. install Apache
Download: http://mirrors.cnnic.cn/apache/httpd/
[Root @ localhost ~] # Tar zxvf httpd-2.4.7.tar.gz
[Root @ localhost ~] # Cd httpd-2.4.7
[Root @ localhost httpd-2.4.7] #. /configure -- prefix =/usr/local/apache -- enable-dav -- enable-so -- enable-rewrite -- enable-maintainer-mode -- with-apr =/usr/local/apr -- with-apr-util =/usr/local/apr-util/
[Root @ localhost ~] # Cp/usr/local/apache/bin/apachectl/etc/init. d/httpd
[Root @ localhost ~] # Sed-I's/# ServerName. */ServerName localhost/'/usr/local/apache/conf/httpd. conf
3. Install SVN
SVN requires SQLite database support. First install SQLite
Download: http://www.sqlite.org/download.html
1234 [root @ localhost ~] # Tar zxvf sqlite-autoconf-3080200.tar.gz
[Root @ localhost ~] # Cd sqlite-autoconf-3080200
[Root @ localhostsqlite-autoconf-3080200] #./configure
[Root @ localhostsqlite-autoconf-3080200] # make & make install
# Install SVN
Download: http://subversion.apache.org/download
[Root @ localhost ~] # Tar zxvf subversion-1.8.5.tar.gz
[Root @ localhost ~] # Cd subversion-1.8.5
[Root@localhostsubversion-1.8.5] #. /configure -- prefix =/usr/local/subversion -- with-apxs =/usr/local/apache/bin/apxs -- with-apr =/usr/local/apr --- apr-util =/usr/local/apr-util/
[Root@localhostsubversion-1.8.5] # make & make install
./Confiure error: this is because the apsx file does not specify the perl execution program location
Apache/bin/apxs:/usr/local/perl: bad interpreter: No such file or directory
Configure: error: no-APXSrefers to an old version of Apache
Solution: [root @ localhost ~] # Vi/usr/local/apache/bin/apxs
#! /Replace/with/path/to/perl/interpreter-w # change the first line #! /Usr/bin/perl-w
# Add Environment Variables
[Root @ localhost ~] # Echo "PATH = $ PATH/:/usr/local/subversion/bin">/etc/profile
[Root @ localhost ~] # Source/etc/profile
[Root @ localhost ~] # Svnserve-version # The version information is displayed as normal
Recommended reading:
Subversion configuration instances in Linux
CentOS 6.2 SVN setup (YUM installation)
Build an SVN server using Apache + SVN
Set up and use the SVN server in Windows + reset the password on the client
Install SVN in Ubuntu Server 12.04 and migrate Virtual SVN data
Build svn service and migration method on Ubuntu Server
Build SVN server with online storage
Web Version synchronization for Apache + SVN deployment in CentOS 6.3