[linux][软件]Ubuntu部署SVN服务器

1. 安装subversion

apt install subversion

读条结束后可运行代码看是否安装成功

svnserve --version

2. 创建svn版本库

在合适的地方创一个svn文件夹,我这里创建在/home下

mkdir /home/svn

创建svn仓库

svnadmin create /home/svn/repo

创建完成之后cd到 /home/svn/repo

cd /home/svn/repo

ls

可以看到下面的结构

conf db format hooks locks README.txt

3. 修改配置文件以及增加用户权限

进入配置文件

cd conf

可以看到内容

authz hooks-env.tmpl passwd svnserve.conf

其中svnserve.conf就是配置文件

vim svnserve.conf

里面有很多内容,这里就显示一部分

anon-access:控制非鉴权用户访问版本库的权限(来自菜鸟驿站的术语)我的理解就是非用户能做的事(手动狗头; 填none应该就ok

auth-access:控制鉴权用户访问版本库的权限

password-db: 配置用户名密码的地方,默认的话就是当前文件夹下的passwd

authz-db: 配置用户权限的地方, 默认的话就是当前文件夹下的authz

这里是取消这四个字段的注释

This file controls the configuration of the svnserve daemon, if you

use it to allow access to this repository. (If you only allow

access through http: and/or file: URLs, then this file is

irrelevant.)

Visit http://subversion.apache.org/ for more information.

general

The anon-access and auth-access options control access to the

repository for unauthenticated (a.k.a. anonymous) users and

authenticated users, respectively.

Valid values are "write", "read", and "none".

Setting the value to "none" prohibits both reading and writing;

"read" allows read-only access, and "write" allows complete

read/write access to the repository.

The sample settings below are the defaults and specify that anonymous

users have read-only access to the repository, while authenticated

users have read and write access to the repository.

anon-access = none

auth-access = write

The password-db option controls the location of the password

database file. Unless you specify a path starting with a /,

the file's location is relative to the directory containing

this configuration file.

If SASL is enabled (see below), this file will NOT be used.

Uncomment the line below to use the default password file.

password-db = passwd

........

authz-db = authz

相关推荐
Joy T2 小时前
【AI运维】02 云上基础部署:ECS、OSS 与 Nginx 的体系化理解与实践
运维·nginx
广州灵眸科技有限公司3 小时前
瑞芯微(EASY EAI)RV1126B CAN使用
linux·网络·单片机·嵌入式硬件
石小千3 小时前
Nexus升级(3.63.0--3.87.1)
运维
魂万劫5 小时前
如何在虚拟机VM上|Linux环境内安装windows
linux·运维·服务器·windows
序属秋秋秋5 小时前
《Linux系统编程之进程控制》【进程等待】
linux·c语言·c++·进程·系统编程·进程控制·进程等待
zfj3215 小时前
top 命令中的 wa (IO wait) 指标,理论上几乎完全是由磁盘IO(包括swap)引起的,而不是网络IO
linux·网络·top·iowait
Xの哲學5 小时前
Linux网卡注册流程深度解析: 从硬件探测到网络栈
linux·服务器·网络·算法·边缘计算
数字化转型20256 小时前
SAP Signavio 在风机制造行业的深度应用研究
大数据·运维·人工智能
用户6135411460166 小时前
libicu-62.1-6.ky10.x86_64.rpm 安装步骤详解(麒麟V10系统)
linux
WordPress学习笔记6 小时前
wordpress根据分类ID调用分类名称和分类描述
运维·wordpress