• Subversion 安装笔记


    先来上几张图:

     

    subversion 安装记录:

    SVN(Subversion) 结合 Apache httpd DAV 源代码安装笔记

    说明:以下所有操作均在 root 用户下完成

    1. 安装 Apache httpd 2.2
    下载页面:http://httpd.apache.org/download.cgi#apache22
    下载地址:http://labs.mop.com/apache-mirror/httpd/httpd-2.2.22.tar.gz

    解压:tar xzf httpd-2.2.22.tar.gz
    进入:cd httpd-2.2.22
    配置:./configure --prefix=/opt/www --enable-dav --enable-so
    安装:gmake && gmake install

    2. 安装 Subversion 1.6.18
    下载页面:http://subversion.apache.org/download/
    下载地址:http://subversion.tigris.org/downloads/subversion-1.6.18.tar.gz
    依赖的包:http://subversion.tigris.org/downloads/subversion-deps-1.6.18.tar.gz

    解压:tar xzf subversion-1.6.18.tar.gz && tar xzf subversion-deps-1.6.18.tar.gz
    进入:cd subversion-1.6.18
    配置:./configure --prefix=/opt/svn --with-apxs=/opt/www/bin/apxs
    安装:gmake && gmake install

    至此安装已经完毕,接下去创建 svn repos,配置 httpd 和修改权限

    3. 创建 svn repos 并修改权限
    进入:cd /opt
    创建:/opt/svn/bin/svnadmin create repos
    修改:chown -R daemon:daemon repos

    4. 配置 httpd
    打开:vi /opt/www/conf/httpd.conf
    添加:
    <Location /repos>
    DAV svn
    SVNPath /opt/repos
    </Location>

    5. 启动服务
    启动:/opt/www/bin/apachectl start
    浏览:http://localhost/repos

    至此配置完毕可以正常使用 apache 结合的 svn 了

    subversion 安装脚本:

    #!/bin/bash
    
    # If you have downloaded, you can comment the following download script.
    # 1. Install Apache httpd 2.2
    #wget -c http://labs.mop.com/apache-mirror/httpd/httpd-2.2.22.tar.gz
    tar xzf httpd-2.2.22.tar.gz
    cd ~/httpd-2.2.22
    ./configure --prefix=/opt/www --enable-dav --enable-so
    gmake && gmake install
    
    # 2. Install Subversion 1.6.18
    #wget -c http://subversion.tigris.org/downloads/subversion-1.6.18.tar.gz
    #wget -c http://subversion.tigris.org/downloads/subversion-deps-1.6.18.tar.gz
    tar xzf subversion-1.6.18.tar.gz && tar xzf subversion-deps-1.6.18.tar.gz
    cd ~/subversion-1.6.18
    ./configure --prefix=/opt/svn --with-apxs=/opt/www/bin/apxs
    gmake && gmake install
    
    # 3. Create SVN repos and modify the authority
    cd /opt
    /opt/svn/bin/svnadmin create repos
    chown -R daemon:daemon repos
    
    # 4. Configure httpd
    echo "
    <Location /repos>
        DAV svn
        SVNPath /opt/repos
    </Location>" >> /opt/www/conf/httpd.conf
    
    # 5. Start httpd with subversion
    /opt/www/bin/apachectl start
  • 相关阅读:
    洛谷 P2384 最短路
    洛谷 P2910 [USACO08OPEN]寻宝之路Clear And Present Danger
    POJ 3264 Balanced Lineup
    洛谷 P1892 团伙
    洛谷 P1724 东风早谷苗
    P1129 [ZJOI2007]矩阵游戏
    P1894 [USACO4.2]完美的牛栏The Perfect Stall
    Poj 3041 Asteroids
    P3377 【模板】左偏树(可并堆)
    P1613 跑路
  • 原文地址:https://www.cnblogs.com/nysanier/p/2560162.html
Copyright © 2020-2023  润新知