zoukankan      html  css  js  c++  java
  • SVN server setup 1

    ***prerequisite***
    Install all softwares with root privilige

    1. Apache
    1.1 Apache installation
     1) tar zxvf httpd-2.2.15.tar.gz
     2) cd scrlib/apr
     3) ./configure --prefix=/usr/local/apr/ --enable-so --enable-dav --cache-file=/dev/null --srcdir=/home/svn/Software/httpd-2.2.15/srclib/apr --exec-prefix=/usr/local/apr --libdir=/usr/local/apr/lib --includedir=/usr/local/apr --bindir=/usr/local/apr/bin --datadir=/usr/local/apr --with-installbuilddir=/usr/local/apr/build
     4)make
     5)make install
     6)cd ..
     7)cd apr-util
     8)./configure --with-apr=/usr/local/apr/bin/ --with-ldap-lib=/usr/local/apr/lib/ --with-ldap=ldap
     9)make
     10)make install
     11)cd ../..
     12)./configure --enable-ldap --enable-authnz-ldap --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config --enable-mods-shared=all
     13)make
     14)make install

    1.2 Apache check
     1)Check status
       /etc/rc.d/init.d/httpd status
     2)Start
       /etc/rc.d/init.d/httpd start
     3)stop
       /etc/rc.d/init.d/httpd stop
     4)restart
       /etc/rc.d/init.d/httpd restart
     5)Update httpd.conf
       ServerName 192.168.6.200
       then restart the service, check you can access it by http://192.168.6.200


    2. Subversion
    2.1 Neon installation
      1)tar zxvf neon-0.29.3.tar.gz
      2)./configure --enable-shared --with-ssl=openssl
      3)make
      4)make install
    Q&A
      1)error:configure: error: Subversion requires SQLite
    --------------------------------------------------------------
        Read the manual.
    Code:
    * SQLite  (REQUIRED for client and server)

       Subversion uses SQLite to manage some internal databases.
    SQLite is faster and more efficient for storing small bits or huge amounts of data. Solution is install SQLite and stop bitching about it.
    --------------------------------------------------------------

    2.2 sqlite installation
      1)tar zxvf sqlite-3.7.0.tar.gz
      2)cd sqlite-3.7.0
      3)./configure --disable-tcl --prefix=/usr/local/sqlite3
      3)make
      4)make install
      5)cp /usr/local/sqlite3/include /usr/include
      6)cp /usr/local/sqlite3/lib/lib* /usr/lib/
      7)cp /usr/local/sqlite3/bin/sqlite3 /bin/

    2.3 Subversion installation
     1)tar zxvf subversion-1.6.12.tar.gz
     2)cd subversion-1.6.12
     2)./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config --with-neon=/usr/local/ --with-ssl --enable-shared="yes" --enable-static="no"
     3)make
     4)make install
     5)Check the configuration in httpd.conf
       a)Thos two modules shoud be loaded automatically.

      LoadModule Dav_svn_module   modules/mod_dav_svn.so
          LoadModule authz_svn_moduel module/mod_authz_svn.so
       b)svn
          <Location /svn>
         DAV svn
         SVNParentPath /svn/repos/
         SVNListParentPath on
         AuthType Basic
         AuthName "Subversion Repositories"
         AuthUserFile /usr/local/apache2/bin/passwd
         Require valid-user
         </Location>

       c)Listen 192.168.6.200:80
         SeverName 192.168.6.200

       d)Create a vaild user

           #cd /usr/local/apache2/bin

           #htpasswd -c passwd test

           #Enter your password:******

       e)restart apache
          #cd /usr/local/apache2/bin
          #./apachectl restart

    3. Create Repository
     1)#svnadmin create /svn/repos/test    #test is repository name
     2)#chown daemon:daemon -R /svn/repos


     

  • 相关阅读:
    嵌套循环td时补齐td的解决方法
    [web.aspNet]vs2005无法断点调试网站,断点失效 IE8 vss6.0
    使IE6下PNG背景透明的七种方法任你选
    VBA之Range对象在Excel单元格赋值示例
    css控制透明度
    SQL2000中用backup 备份数据库
    软件开发人才级别划分
    sql server事务全攻略(转载)
    程序员不是神,心态决定一切
    一个真正合格程序员的七种素质
  • 原文地址:https://www.cnblogs.com/allenblogs/p/1791011.html
Copyright © 2011-2022 走看看