zoukankan      html  css  js  c++  java
  • CentOS安装和部署SVN服务器

    1、安装SVN

    通过yum安装svn

    [root@localhost webber]# yum install subversion

    查看svn是否安装成功

    [root@localhost webber]# svn --version
    svn, version 1.7.14 (r1542130)
       compiled Apr 11 2018, 02:40:28
    
    Copyright (C) 2013 The Apache Software Foundation.

    2、配置版本库 

    修改svn的默认数据根目录/var/svn,也可以不修改,此处我将数据根目录设置为/home/svn

    [root@localhost home]# vi /etc/sysconfig/svnserve
    
    # OPTIONS is used to pass command-line arguments to svnserve.
    #
    # Specify the repository location in -r parameter:
    OPTIONS="-r /home/svn"

    创建自己的版本库

    [root@localhost home]# svnadmin create /home/svn/webber

    配置版本库的用户名和密码,"用户名" = "密码"

    [root@localhost home]# vi /home/svn/webber/conf/passwd
    [users]
    # harry = harryssecret
    # sally = sallyssecret
    webber = 123456

    配置版本库的权限

    [root@localhost home]# vi /home/svn/webber/conf/authz

    在文件末尾加上用户的权限,如webber版本库根目录的读写权限

    [webber:/]
    webber = rw

    修改版本库的配置

    [root@localhost home]# vi /home/svn/webber/conf/svnserve.conf
    [general]
    anon-access = none                     #控制非鉴权用户访问版本库的权限
    auth-access = write                    #控制鉴权用户访问版本库的权限
    password-db = passwd                   #指定用户名口令文件名
    authz-db = authz                       #指定权限配置文件名
    realm = /home/svn/webber               #指定版本库的认证域,即在登录时提示的认证域名称

    所有配置均已经完成,最后一步,启用版本库

    [root@localhost home]# svnserve -d -r /home/svn/

    3、使用版本库

    然后checkout试试能否成功更新版本库webber

    [root@localhost webber]# svn checkout svn://192.168.0.108/webber
    Authentication realm: <svn://192.168.0.108:3690> /home/svn/webber
    Password for 'root': 
    Authentication realm: <svn://192.168.0.108:3690> /home/svn/webber
    Username: webber
    Password for 'webber': 
    
    -----------------------------------------------------------------------
    ATTENTION!  Your password for authentication realm:
    
       <svn://192.168.0.108:3690> /home/svn/webber
    
    can only be stored to disk unencrypted!  You are advised to configure
    your system so that Subversion can store passwords encrypted, if
    possible.  See the documentation for details.
    
    You can avoid future appearances of this warning by setting the value
    of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
    '/root/.subversion/servers'.
    -----------------------------------------------------------------------
    Store password unencrypted (yes/no)? yes
    Checked out revision 0.
    [root@localhost webber]# ll
    total 0
    drwxr-xr-x. 3 root root  18 Jul 15 01:07 webber
  • 相关阅读:
    Vmware15的安装以及Ubunt的在虚拟机上的安装
    MYSQL数据库查询索引
    SpringBoot和mybatis整合报错:Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 152; columnNumber: 10; 元素类型为 "mapper"
    idea中导包出现import org.apach.*,提交代码老出现冲突,不想使用.*的设置
    idea打断点后发现被标记的断点处那一行整行被标记了其他颜色,前面没有断点标识的红点
    Intellj IDEA 光标显示insert状态解决办法
    AngularJS 单元测试 Karma jasmine
    npm 及安装
    AngularJS 承诺 Promise
    AngularJS 路由及SPA理解
  • 原文地址:https://www.cnblogs.com/miyng/p/9310456.html
Copyright © 2011-2022 走看看