1.下载apache文件到linux下,并解压
tar -xvzf httpd-2.2.17.tar.gz
2.下载subversion-1.6.15.tar.gz和subversion-deps-1.6.15.tar.gz,并解压
tar -xvzf subversion-1.6.15.tar.gz
tar -xvzf subversion-deps-1.6.15.tar.gz
3.配置apache
./configure --enable-dav --enable-so --prefix=/opt/www ----(编译)
4.编译并安装apache
make && make install
5.配置svn
./configure --with-apxs=/opt/www/bin/apxs --prefix=/opt/svn -----关联apache,配置svn,并配置到/opt/svn下(编译)
6.编译并安装svn
make && make install
7.查看编译情况
bin/httpd -l -----查看apache编译情况
8.启动apache
bin/apachectl start
ps -ef | grep http -----查看是否启动
9.创建response
/opt/svn/bin/svnadmin help create ----查看帮助
/opt/svn/bin/svnadmin create repos ----创建respos
10.配置通过apache访问respos
vi /opt/www/conf/httpd.conf中
末尾加
<Location /repos>
DAV svn
SVNPath /opt/repos
</Location>
11.重启服务
apachectl restart