先来上几张图:
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转载于:https://www.cnblogs.com/nysanier/archive/2012/06/24/2560162.html
相关资源:版本控制软件Subversion的使用笔记