4# CentOS 6.7 x64 installation Subversion1.9.3 (svn,http)

Source: Internet
Author: User

System installed according to # CentOS 6.7 x64 minimized installation

APACHE/PHP/MARIADB Environment in accordance with the 6.7 CentOS x64 APACHE/PHP/MARIADB Environment Construction


Update python

# CentOS 6.7 x64 uses Python2.6 by default, I update it to 2.7[[email protected] src]# wget http://python.org/ftp/python/2.7.3/ Python-2.7.3.tar.bz2[[email protected] src]# tar-jxvf python-2.7.3.tar.bz2[[email protected] src]# CD Python-2.7.3 [[ Email protected] python-2.7.3]#/configure--prefix=/usr/local/python2.7[[email protected] python-2.7.3]# make && Amp Make Install[[email protected] python-2.7.3]# Mv/usr/bin/python/usr/bin/python2.6.6[[email protected] python-2.7.3]# Ln-s/usr/local/python2.7/bin/python2.7/usr/bin/python[[email protected] python-2.7.3]# python-v


Download, install Subversion

related software in junlins_lnamp inside the Src/subversion folder contains, you can also download

[[email protected] subversion]# wget https://mirrors.junlins.site/subversion/ expat-2.1.0.tar.gz[[email protected] subversion]# wget https://mirrors.junlins.site/ subversion/scons-2.4.1.tar.gz[[email protected] subversion]# wget https:// mirrors.junlins.site/subversion/serf-1.3.8.tar.bz2[[email protected] subversion]# wget  Https://mirrors.junlins.site/subversion/sqlite-amalgamation-3071501.zip[[email protected] subversion ]# wget https://mirrors.junlins.site/subversion/sqlite-autoconf-3080500.tar.gz[[email protected ] subversion]# wget https://mirrors.junlins.site/subversion/subversion-1.9.3.tar.gz#  Unpacking Packages [[email protected] subversion]# tar zxf expat-2.1.0.tar.gz [[email  protected] subversion]# tar zxf scons-2.4.1.tar.gz [[email protected]  subversion]# tar xf serf-1.3.8.tar.bz2 [[email protected] subversion]# unzip sqlite-amalgamation-3071501.zip [[email  protected] subversion]# tar zxf sqlite-autoconf-3080500.tar.gz [[email protected ] subversion]# tar zxf subversion-1.9.3.tar.gz#  Install package [[email protected]  Subversion]# cd expat-2.1.0[[email protected] expat-2.1.0]# ./configure --prefix =/usr/local/expat && make && make install[[email protected]  EXPAT-2.1.0]# CD&NBSP, .... /scons-2.4.1[[email protected] scons-2.4.1]# python setup.py install[[email  PROTECTED] SCONS-2.4.1]# CD&NBSP, .... /serf-1.3.8[[email protected] serf-1.3.8]# scons prefix=/usr/local/serf apr=/usr/ Local/apache/bin/apr-1-config apu=/usr/local/apache/bin/apu-1-config install[[email protected]  SERF-1.3.8]# CD&NBSP, .... /sqlite-autoconf-3080500[[email protected] sqlite-autoconf-3080500]# ./configure --prefix=/usr/local/sqlite  && make && make install[[email protected]  SQLITE-AUTOCONF-3080500]# CD&NBSP, .... /sqlite-amalgamation-3071501[[email protected] sqlite-amalgamation-3071501]# mkdir -p &NBSP, .... /subversion-1.9.3/sqlite-amalgamation[[email protected] sqlite-amalgamation-3071501]# \cp  -A ./ SQLITE3.C&NBSP, .... /subversion-1.9.3/sqlite-amalgamation/[[email protected] sqlite-amalgamation-3071501]# cd  .. /subversion-1.9.3[[email protected] subversion-1.9.3]# ./configure --prefix=/usr/local/ Subversion --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apache/bin/apr-1-config  --with-apr-util=/usr/local/apache/bin/apu-1-config --with-sqlite=/usr/local/sqlite --with-zlib  --enable-maintainer-mode --with-serf=/usr/local/serf  [[email protected] subversion-1.9.3]# make && make install[[email  protected] subversion-1.9.3]# echo  "/usr/local/serf/lib"  >> /etc/ld.so.conf  && echo  "/usr/local/subversion/lib"  >> /etc/ld.so.conf &&  ldconfig[[email protected] subversion-1.9.3]# echo  "export path=/usr/local/ Subversion/bin: $PATH " > /etc/profile.d/subversion.sh[[email protected] subversion-1.9.3 ]# source /etc/profile.d/subversion.sh#  configuration subversion#  Create Subversion repository directory [[email  protected] subversion]# mkdir /data/subversion#  Configuring Subversion startup scripts [[email protected]  subversion]# wget https://mirrors.junlins.site/subversion/Subversion-init[[email  Protected] subversion]# cp subversion-init /etc/init.d/subversion[[email protected]  subversion]# chmod +x&Nbsp;/etc/init.d/subversion[[email protected] subversion]# chkconfig --add subversion [[Email protected] subversion]# chkconfig --level 235 subversion on


Create repository (SVN protocol)

#  Repository Creation [[email protected] ~]# svnadmin create /data/subversion/svn[[email  Protected] ~]# mkdir -p /data/subversion/svn-folder /data/subversion/svn-folder/trunk  /data/subversion/svn-folder/branches /data/subversion/svn-folder/tags[[email protected] ~ ]# svn import /data/subversion/svn-folder file:///data/subversion/svn -m  " Creating basic directory structure "#  User Rights Management [[email protected] ~]# sed  -i  ' s/# anon-access = read/anon-access = read/'  /data/subversion/svn/conf/ svnserve.conf[[email protected] ~]# sed -i  ' s/# auth-access = write/ auth-access = write/'  /data/subversion/svn/conf/svnserve.conf[[email protected] ~]#  sed -i  ' s/# password-db = passwd/password-db = passwd/'  /data/ Subversion/svn/conf/svnserve.conf[[email protected] ~]# sed -i  ' s/# authz-db = authz/authz-db  = authz/'  /data/subversion/svn/conf/svnserve.conf[[email protected] ~]# sed  -i  ' s/# realm = my first repository/realm = svn repository/ '  /data/subversion/svn/conf/svnserve.conf[[email protected] ~]# echo  ' svn =  12345 " >> /data/subversion/svn/conf/passwd[[email protected] ~]# echo   "[repo:/]"  >> /data/subversion/svn/conf/authz[[email protected] ~]# echo   "SVN = RW"  >> /data/subversion/svn/conf/authz


Restart Subverison

[[Email protected] ~]# service Subversion restart


Access subversion using the SVN protocol

Address: SVN://172.21.35.102/SVN

User name: SVN

Password: 12345


Create a repository (HTTP protocol)


#  Repository Creation [[email protected] ~]# svnadmin create /data/subversion/http[[email  protected] ~]# mkdir -p /data/subversion/http-folder /data/subversion/http-folder/ Trunk /data/subversion/http-folder/branches /data/subversion/http-folder/tags[[email protected]  ~]# svn import /data/subversion/http-folder file:///data/subversion/http -m   "Creating basic directory structure" #  User Rights Management [[email protected] ~]#  htpasswd -c /data/svnwebpasswd http#  Input HTTP Library http user password, here use 12345[[email protected]  ~]# cat > /data/svnwebaccess << EOF[groups][http:/]http=rwEOF#  Apache Configuration #  Log Management [[email protected] ~]# mkdir /data/wwwlogs/subversion[[email  protected] ~]# chown -r www:www /data/wwwlogs/subversion#  adding mod_dav_ to Apache SVN and MOD_AUTHZ_SVN modules [[Email proTected] ~]# cp -r /usr/local/subversion/libexec/* /usr/local/apache/modules/[[email  protected] ~]# echo  "Loadmodule dav_svn_module modules/mod_dav_svn.so"   >> /usr/local/apache/conf/httpd.conf[[email protected] ~]# echo  "LoadModule  authz_svn_module modules/mod_authz_svn.so " >> /usr/local/apache/conf/httpd.conf[[ email protected] ~]# chown -r www:www /data/subversion/http[[email  Protected] ~]# chown -r www:www /data/subversion/http-folder[[email protected]  ~]# cat > /usr/local/apache/conf/vhost/subversion.conf << EOF< virtualhost *:8080>    serveradmin [email protected]     ServerName subversion.test.com    ErrorLog  "/data/wwwlogs/subversion/error _subversiong_test_com_apache.log "    customlog  "/data/wwwlogs/subversion/access_subversion_test_com_apache.log"  common <location />    dav svn    svnparentpath /data/ subversion    authtype basic    authname  "HTTP  Subversion "    AuthUserFile /data/svnwebpasswd     authzsvnaccessfile /data/svnwebaccess    require valid-user</location>< /virtualhost>eof[[email protected] ~]# echo  "listen 8080"  >> /usr/ Local/apache/conf/httpd.conf


Turn off the firewall and restart Apache

[[Email protected] ~]# service iptables stop[[email protected] ~]# service httpd restart



Using the HTTP protocol to access subversion

Address: Http://172.21.35.102:8080/http

User name: http

Password: 12345




This article is from the "Junlins" blog, make sure to keep this source http://junlins.blog.51cto.com/7601672/1789834

4# CentOS 6.7 x64 installation Subversion1.9.3 (svn,http)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.