1.安装svn

  1. yum -y install subversion

2.配置

  1. mkdir /home/svn/admin/test
  1. mkdir /home/svn/svnrepos
  1. svnadmin create /home/svn/admin/test

3.配置单个项目

  1. vi test/conf/svnserve.conf #修改成一下的就可以了
  2.  
  3. ### This file controls the configuration of the svnserve daemon, if you
  4. ### use it to allow access to this repository. (If you only allow
  5. ### access through http: and/or file: URLs, then this file is
  6. ### irrelevant.)
  7.  
  8. ### Visit http://subversion.apache.org/ for more information.
  9.  
  10. [general]
  11. ### The anon-access and auth-access options control access to the
  12. ### repository for unauthenticated (a.k.a. anonymous) users and
  13. ### authenticated users, respectively.
  14. ### Valid values are "write", "read", and "none".
  15. ### Setting the value to "none" prohibits both reading and writing;
  16. ### "read" allows read-only access, and "write" allows complete
  17. ### read/write access to the repository.
  18. ### The sample settings below are the defaults and specify that anonymous
  19. ### users have read-only access to the repository, while authenticated
  20. ### users have read and write access to the repository.
  21. anon-access = none
  22. auth-access = write
  23. ### The password-db option controls the location of the password
  24. ### database file. Unless you specify a path starting with a /,
  25. ### the file's location is relative to the directory containing
  26. ### this configuration file.
  27. ### If SASL is enabled (see below), this file will NOT be used.
  28. ### Uncomment the line below to use the default password file.
  29. password-db = passwd
  30. ### The authz-db option controls the location of the authorization
  31. ### rules for path-based access control. Unless you specify a path
  32. ### starting with a /, the file's location is relative to the the
  33. ### directory containing this file. If you don't specify an
  34. ### authz-db, no path-based access control is done.
  35. ### Uncomment the line below to use the default authorization file.
  36. authz-db = authz
  37. ### This option specifies the authentication realm of the repository.
  38. ### If two repositories have the same authentication realm, they should
  39. ### have the same password database, and vice versa. The default realm
  40. ### is repository's uuid.
  41. realm = /home/svn/svnrepos
  42. ### The force-username-case option causes svnserve to case-normalize
  43. ### usernames before comparing them against the authorization rules in the
  44. ### authz-db file configured above. Valid values are "upper" (to upper-
  45. ### case the usernames), "lower" (to lowercase the usernames), and
  46. ### "none" (to compare usernames as-is without case conversion, which
  47. ### is the default behavior).
  48. # force-username-case = none
  49.  
  50. [sasl]
  51. ### This option specifies whether you want to use the Cyrus SASL
  52. ### library for authentication. Default is false.
  53. ### This section will be ignored if svnserve is not built with Cyrus
  54. ### SASL support; to check, run 'svnserve --version' and look for a line
  55. ### reading 'Cyrus SASL authentication is available.'
  56. # use-sasl = true
  57. ### These options specify the desired strength of the security layer
  58. ### that you want SASL to provide. means no encryption, means
  59. ### integrity-checking only, values larger than are correlated
  60. ### to the effective key length for encryption (e.g. means -bit
  61. ### encryption). The values below are the defaults.
  62. # min-encryption =
  63. # max-encryption = 256
  64.  
  65. vi test/conf/passwd
  66.  
  67. [users]
    EggplantPro = 123456
  68.  
  69. vi test/conf/authz

###
### A match can be inverted by prefixing the rule with '~'. Rules can
### grant read ('r') access, read-write ('rw') access, or no access
### ('').

  1.  

[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average

  1.  

[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe

  1.  

# [/foo/bar]
# harry = rw
# &joe = r
# * =
manage = EggplatPro
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
[/]
@manage = rw

4. 启动和关闭服务器

  1. svnserver -r -d /home/svn/admin #启动
  2.  
  3. ps -ef |grep svn #找到svn 的进程然后kill 掉

centos svn的安装和配置的更多相关文章

  1. 环境搭建系列-系统安装之centos 6.5安装与配置

    按照国际惯例,系列目录先奉上: 系列一:系统安装之centos 6.5安装与配置 系列二:准备工作之Java环境安装 系列三:数据为先之MySQL读写集群搭建 系列四:谈分布式之RabbitMQ集群搭 ...

  2. 在CentOS 7中安装与配置Tomcat-8方法

    安装前提 在CentOS 7中安装与配置JDK8 安装tomcat  apache-tomcat-8.0.14.tar.gz文件上传到/usr/local中执行以下操作: [root@localhos ...

  3. linux下svn的安装与配置

    ---恢复内容开始--- linux下svn的安装与配置 Linux发行版本:CentOS6.5 1.安装subversion sudo yum -y install subversion 2.创建s ...

  4. 如何在 CentOS 7 中安装、配置和安全加固 FTP 服务

    步骤 1:安装 FTP 服务器 1. 安装 vsftpd 服务器很直接,只要在终端运行下面的命令. # yum install vsftpd 2. 安装完成后,服务先是被禁用的,因此我们需要手动启动, ...

  5. MongoDB 3.2 在CentOS 上的安装和配置

    MongoDB 3.2 在CentOS 上的安装和配置   2016-01-06 14:41:41 发布 您的评价:       0.0   收藏     0收藏 一.安装 编辑/etc/yum.re ...

  6. 在 CentOS 7上安装并配置 Python 3.6 环境

    前言 按照此方法安装保证以下报错什么的统统都没有! 基础环境 系统:centos7.4 软件:python3 Retrying (Retry(total=0, connect=None, read=N ...

  7. CentOS 7中安装和配置Promethues

    Prometheus 是什么? Prometheus是一套开源的监控&报警&时间序列数据库的组合,起始是由SoundCloud公司开发的.随着发展,越来越多公司和组织接受采用Prome ...

  8. CentOS 下 redis 安装与配置

    CentOS 下 redis 安装与配置   1.到官网上找到合适版本下载解压安装 [root@java src]# wget -c http://redis.googlecode.com/files ...

  9. CentOS linux下安装和配置Apache+SVN(用浏览器http方式访问SVN目录)

    在CentOS linux下安装SVN,我们可以进行以下步骤: 第一步:安装CentOS Linux操作系统,并在CentOS安装进行的同时,自定义安装这一步,一定要勾选Subversion(在“开发 ...

随机推荐

  1. IdentityServer4 学习三

    ClientCredentials客户端类型实现 客户端应用向IdentityServer请求AccessToken,IdentityServer验证通过把AccessToken返回给客户端应用,客户 ...

  2. Spring bean加载之1:BeanFactory和FactoryBean

    BeanFactory BeanFactory:以Factory结尾,表示它是一个工厂类(接口),用于管理Bean的一个工厂.在Spring中,BeanFactory是IOC容器的核心接口,它的职责包 ...

  3. 虚拟机性能监控与故障处理工具(深入理解java虚拟机三)

    JDK自带的工具可以方便的帮助我们处理一些问题,包括查看JVM参数,分析内存变化,查看内存区域,查看线程等信息. 我们熟悉的有java.exe,javac.exe,javap.exe(偶尔用),jps ...

  4. Session中清除对象方法比较

    转载. https://blog.csdn.net/u014401141/article/details/51816308 Session中清除对象方法比较   http://blog.csdn.ne ...

  5. STM32之串口编程步骤

    串口编程步骤(非中断)如下: 使能GPIO时钟 使能串口时钟 配置TXD为复用功能+推挽   (站在STM32芯片角度) 配置RXD为复用功能+上拉   ( 站在STM32芯片角度) 设置数据帧 OV ...

  6. 两个gif图片动画效果

    <div className="uploading-animation-tip-wrap"> <img src={require('~/shared/assets ...

  7. Luogu5307 [COCI2019] Mobitel 【数论分块】【递推】

    题目分析: 对于向上取整我们总有,$\lceil \frac{\lceil \frac{n}{a} \rceil}{b} \rceil = \lceil \frac{n}{a*b} \rceil$这个 ...

  8. Angular 学习笔记 (Angular 9 & ivy)

    refer : https://blog.angularindepth.com/all-you-need-to-know-about-ivy-the-new-angular-engine-9cde47 ...

  9. 怎样在python中写注释

    python中的注释是以井号: # 开头, 一般会在#后加一个空格. # This is a comment print("Hello, World!") 多行注释的语法是三引号: ...

  10. 如何录屏做GIF图

    网上找了一下,ScreenToGif 这个神器 https://github.com/NickeManarin/ScreenToGif https://github.com/NickeManarin/ ...