一、环境
CentOS-6.5-i386-minimal.iso
subversion-1.8.10
二、安装
安装apr-1.5.1.tar.gz
wget http://mirrors.cnnic.cn/apache//apr/apr-1.5.1.tar.gz tar -zxvf apr-1.5.1.tar.gz ./configure --prefix=/usr/local/apr make & make install
安装apr-util-1.5.4.tar.gz
http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.4.tar.gz tar -zxvf apr-util-1.5.4.tar.gz ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config make & make install
下载源码sqlite-amalgamation-3071501.zip
wget http://www.sqlite.org/sqlite-amalgamation-3071501.zip unzip sqlite-amalgamation-3071501.zip mv sqlite-amalgamation-3071501 /usr/local/subversion-1.8.10/sqlite-amalgamation
安装zlib
略
安装subversion
./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-zlib=/usr/local/zlib/ --with-openssl --enable-maintainer-mode
三、启动配置
1,创建一个目录,启动
mkdir repositories
/usr/local/subversion/bin/svnserve -d -r /usr/local/subversion/repositories
2,创建库
cd repositories svnadmin create project1 cd project1/conf/
3,配置 svnserve.conf
anon-access = none auth-access = write password-db = passwd authz-db = authz realm = project1
4,配置authz
[aliases] # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average [groups] # harry_and_sally = harry,sally # harry_sally_and_joe = harry,sally,&joe project1=chenlei # [/foo/bar] # harry = rw # &joe = r # * = # [repository:/baz/fuz] # @harry_and_sally = rw # * = r [project1:/] @project1=rw
5,配置passwd
### This file is an example password file for svnserve. ### Its format is similar to that of svnserve.conf. As shown in the ### example below it contains one section labelled [users]. ### The name and password for each user follow, one account per line. [users] # harry = harryssecret # sally = sallyssecret chenlei=chenlei
6,访问svn:
svn://192.168.206.128/project1