centos 安装 svn

简介:

      centos 安装svn服务


1. # yum install subversion


2.然后检查下安装的版本号 因为版本号不同可能会出现不同的情况



版本 信息


[root@VM_137_37_centos ~]# svnserve --version


svnserve, version 1.7.14 (r1542130)


compiled Aug 23 2017, 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.


3.创建适合的存储svn的仓库


mkdir -p /home/svn/svnrepos


4.创建版本库 svnadmin create /home/svn/svnrepos


5.然后去到创建的仓库地址创建版本库 cd/home/svn/svnrepos


会有如下内容:


[root@VM_137_37_centos svnrepos]# ls -1


README.txt


conf


db


format


hooks


locks


6.然后进入到conf文件中修改内容 

cd conf/


authz文件是权限控制文件


passwd是帐号密码文件


svnserve.conf SVN服务配置文件


7 修改密码


### This file is an example password file for svnserve.


### Its format is similar to that of svnserve.conf. As shown in the


### example below it contains one section labelled [users].


### The name and password for each user follow, one account per line.


[users]


# harry = harryssecret


# sally = sallyssecret


yunwei = 123456


新增一个用户密码


8修改权限


html] view plaincopy


[/]

yunwei = rw

让其有读写的权限 如果有特殊权限要求svn上寻找


9.修改svnserve.conf文件 vi svnserve.conf


anon-access = read #匿名用户可读


auth-access = write #授权用户可写


password-db = passwd #使用哪个文件作为账号文件


authz-db = authz #使用哪个文件作为权限文件


realm = /home/svn/svnrepos # 认证空间名,版本库所在目录


注意去掉注释后前面不能有空格 要不然在执行的时候会报错


10.启动svn


svnserve -d -r /home/svn/svnrepos(停止SVN命令 killall svnserve)


11.然后就可以去windows安装svn,然后鼠标右键check out测试了

svn://192.168.64.147


输入svn的地址就好后面的内容可以不输入











本文转自去轻狂书生51CTO博客,原文链接:http://blog.51cto.com/8999a/1964387 ,如需转载请自行联系原作者





相关文章
|
11天前
|
Linux 网络安全 Python
linux centos上安装python3.11.x详细完整教程
这篇文章提供了在CentOS系统上安装Python 3.11.x版本的详细步骤,包括下载、解压、安装依赖、编译配置、解决常见错误以及版本验证。
81 1
linux centos上安装python3.11.x详细完整教程
|
2月前
|
消息中间件 Linux API
centos7 安装rabbitmq自定义版本及配置
centos7 安装rabbitmq自定义版本及配置
|
9天前
|
Unix Linux 开发工具
centos的官网下载和vm16虚拟机安装centos8【保姆级教程图解】
本文详细介绍了如何在官网下载CentOS 8以及在VMware Workstation Pro 16虚拟机上安装CentOS 8的步骤,包括可能出现的问题和解决方案,如vcpu-0错误的处理方法。
centos的官网下载和vm16虚拟机安装centos8【保姆级教程图解】
|
10天前
|
消息中间件 Linux
centos7安装rabbitmq
centos7安装rabbitmq
|
9天前
|
Linux 虚拟化 Windows
完美解决:重新安装VMware Tools灰色。以及共享文件夹的创建(centos8)
这篇文章提供了解决VMware Tools无法重新安装(显示为灰色)问题的步骤,并介绍了如何在CentOS 8上创建和配置VMware共享文件夹。
完美解决:重新安装VMware Tools灰色。以及共享文件夹的创建(centos8)
|
10天前
|
Docker 容器
centos7.3之安装docker
centos7.3之安装docker
|
2月前
|
弹性计算 关系型数据库 MySQL
centos7 mysql安装及配置
本文详细介绍了在阿里云服务器ECS上通过yum源安装MySQL 8.0.12的过程,包括更新yum源、下载并安装MySQL源、解决安装过程中可能遇到的问题等步骤。此外,还介绍了如何启动MySQL服务、设置开机自启、配置登录密码、添加远程登录用户以及处理远程连接异常等问题。适合初学者参考,帮助快速搭建MySQL环境。
159 8
centos7 mysql安装及配置
|
11天前
|
NoSQL Linux Redis
linux之centos安装redis
linux之centos安装redis
|
1月前
|
存储 Linux Docker
CentOS 7.6安装Docker实战案例及存储引擎和服务进程简介
关于如何在CentOS 7.6上安装Docker、介绍Docker存储引擎以及服务进程关系的实战案例。
93 3
CentOS 7.6安装Docker实战案例及存储引擎和服务进程简介
|
6天前
|
缓存 Linux 开发工具
CentOS7 安装KDE报错的解决方法:Loaded plugins:fastestmirror,langpacks There is no installed group.
CentOS7 安装KDE报错的解决方法:Loaded plugins:fastestmirror,langpacks There is no installed group.
14 0
下一篇
无影云桌面