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
  • 相关阅读:
    虚拟机安装Linux方案和操作系统启动流程
    CentOS7防止root密码被破解
    子网划分和VLAN
    Python之包的相关
    禁止复制文本的代码 HTML
    asp.net中Session过期设置方法
    CSS+DIV问题!DIV的最小高度问题!
    设置COOKIE过期时间的方法
    网站常见问题及解决方法(div/css)
    ASP.NET中如何删除最近打开的项目和文件的记录
  • 原文地址:https://www.cnblogs.com/nysanier/p/2560162.html
Copyright © 2011-2022 走看看