1.安装SVN服务
#检查现有版本
rpm -qa subversion
#如果存储旧版本,卸载旧版本SVN
yum remove subversion
#安装SVN
yum install subversion
#验证安装
svnserve --version
[root@localhost /]# svnserve --version svnserve,version 1.7.14 (r1542130) compiled Nov 20 2015,19:25:09 Copyright (C) 2013 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software,see http://subversion.apache.org/ The following repository back-end (FS) modules are available: * fs_base : Module for working with a Berkeley DB repository. * fs_fs : Module for working with a plain file (FSFS) repository. Cyrus SASL authentication is available.
2.创建代码库并分配权限
#代码库创建
SVN软件安装完成后还需要建立SVN库
@H_404_48@mkdir -p /data/svn/systemCenter
svnadmin create /data/svn/systemCenter