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
posted @ 2012-06-24 16:58  F.N.  阅读(1241)  评论(0编辑  收藏  举报