zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    ***:做人的基本原则(看完终身受益)
    ref和out的相同和不同的讨论
    关于继承和虚函数的入门讨论
    C#中利用ArrayList来对索引器访问越界情况进行内容的扩充处理
    [C#]实现IEnumerable接口来使用foreach语句的一个实例
    浅谈MSSQL锁机制
    jQuery图片分屏加载技术插件
    SET IDENTITY_INSERT [Table] [ON|OFF]
    SQL Server DATEPART() 函数
    常用的SQL语句对数据库进行操作
  • 原文地址:https://www.cnblogs.com/nysanier/p/2560162.html
Copyright © 2011-2022 走看看