svn+apache安装及配置
一.准备工作
1.安装环境
redhat 5.8 32位
2.所需安装包
二.安装配置svn+apache
1.安装apache,svn
- yum -y install httpd
- tar xf subversion-1.6.18.tar.gz
- tar xf subversion-deps-1.6.18.tar.gz
- cd subversion-1.6.8
- ./configure -prefix=/usr/local/subversion
- make && make install
2.配置svn+apache
(1).安装配置apache与svn的连接
- mkdir -p /opt/svndata
- vim /etc/httpd/conf/httpd.conf
- Listen 192.168.133.12:8081
- ServerName 192.168.133.12:8081
- <Location /svn>
- DAV svn
- SVNParentPath /opt/svndata
- AuthzSVNAccessFile /opt/svndata/repos/conf/authz
- AuthType Basic
- AuthName "Subversion repository"
- AuthUserFile /opt/svndata/repos/conf/passwd
- Require valid-user
- </Location>
- yum -y install mod_dav_svn
(2).配置svn
- mkdir -p /opt/svndata/repos
- svnadmin create /opt/svndata/repos
- htpasswd -c /opt/svndata/repos/conf/passwd qinqin
- htpasswd -m /opt/svndata/repos/conf/passwd qinqin001
- vim /opt/svn/conf/authz.conf
- [groups]
- admin=qinqin,qinqin001
- [/]
- @admin=rw
- [repos:/]
- qinqin=rw
- qinqin001=rw
- * = r
(3).启动svn
- svnserve -d -r /opt/svndata
(4).浏览器登录
http://192.168.133.12:8081/svn/repos