1、安装apr-util
#yum install apr-util apr-util-devel
2、安装sqlite
#yum install sqlite sqlite-devel
3、安装zlib
#tar zxf zlib-1.2.8.tar.gz
#cd zlib-1.2.8
#./configure
#make && make install
4、解压subversion
#tar -xvzf subversion-1.9.3.tar.gz
#cd subversion-1.9.3/
#./configure --prefix=/usr/local/subversion --with-zlib=/usr/local/src/zlib-1.2.8
#make
#make install
5、添加到环境变量
vi /etc/profile
source /etc/profile
6、创建库
#svnadmin create /usr/local/subversion
#cd /usr/local/subversion/conf
#vi svnserve.conf
anon-access = none //改成none
auth-access = write
password-db = passwd
realm = my_dev //改成组
#vi authz //文件,创建svn组和组用户的权限
my_dev = admin
#vi passwd
admin= admin@123
启动svn:
svnserve -d -r /hisc/local/subversion
然后要设置自启动
vi /etc/rc.local 打开自启动文件添加
/usr/local/subversion/bin/svnserve -d -r /hisc/local/subversion
svn命令:
netstat -tnl |grep :3690 查看svn是否启动
ps aux |grep 'svn' 查找所有svn启动的进程
备份svn库(在旧环境上操作)
#svnadmin dump /mnt/svnrepos/ > /mnt/svn_bak20150921