欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

CentOS下安装Subversion简记

程序员文章站 2022-06-16 11:58:53
...

使用yum命令 安装 subversion 非常简单:
$ yum install subversion.i686
安装之前可以用命令 yum search subersion 在CentOS 软件仓库中寻找合适的软件。
[lisboa@server ~]$  yum search subversion
Loaded plugins: fastestmirror
base                                                                                                                         | 3.7 kB     00:00     
extras                                                                                                                       | 3.0 kB     00:00     
updates                                                                                                                      | 3.5 kB     00:00     
=============================================================== Matched: subversion ================================================================
subversion-devel.i686 : Development package for the Subversion libraries
subversion-gnome.i686 : GNOME Keyring support for Subversion
subversion-javahl.i686 : JNI bindings to the Subversion libraries
subversion-kde.i686 : KDE Wallet support for Subversion
subversion-perl.i686 : Perl bindings to the Subversion libraries
subversion-ruby.i686 : Ruby bindings to the Subversion libraries
subversion-svn2cl.noarch : Create a ChangeLog from a Subversion log
mod_dav_svn.i686 : Apache httpd module for Subversion server
subversion.i686 : A Modern Concurrent Version Control System
eclipse-subclipse.i686 : Subversion Eclipse plugin
eclipse-subclipse-graph.i686 : Subversion Revision Graph
git-svn.noarch : Git tools for importing Subversion repositories
svnkit.i686 : Pure Java Subversion client library
eclipse-svnkit.i686 : Eclipse feature for SVNKit
python-paver.noarch : Python-based build/distribution/deployment scripting tool
svnkit-javadoc.i686 : Javadoc for SVNKit

上面列表是subversion相关软件包,这里我们需要的是 subversion.i686.
2.配置subversion
1) 创建目录 /var/svn/repositories 作为安放版本库的目录
    $ mkdir -p /var/svn/repositories
2) 在目录 /var/svn/repositories 创建版本库
    $ svnadmin create zgol
3) 启动svn服务
    svnserve -d -r /var/svn/repositories
4) 迁出检验
    $ cd /tmp
    $ svn co svn://192.168.1.108/zgol
5)设置权限
    使用SVN默认用户认证授权方式
    配置文件 /var/svn/repositories/zgol/conf/authz,passwd 
    设置用户名密码。
6)设置svn开机自启动
    编辑文件 /etc/sysconfig/rc.local
    添加一行   svnserve -d -r /var/svn/repositories

相关标签: svn