svn部署
2018-11-03 08:55:53来源:博客园 阅读 ()
Linux系统下部署SVN
1、安装
yum -y install subversion
2、创建版本库的上级目录
mkdir /var/svn/svnrepos
3、创建版本库app
svnadmin create /var/svn/svnrepos/app
注:可在svnrepos目录下创建多个版本库
每个版本库有如下文件:
conf db format hooks locks README.txt
4、配置文件修改
svnserve.conf:svn服务器配置文件
authz:负责账号权限的管理,控制账号是否读写权限
passwd:负责账号和密码的用户名单管理
1)svnserve.conf文件配置
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
# anon-access = read
# 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
### The authz-db option controls the location of the authorization
### rules for path-based access control. Unless you specify a path
### starting with a /, the file's location is relative to the the
### directory containing this file. If you don't specify an
### authz-db, no path-based access control is done.
### Uncomment the line below to use the default authorization file.
# authz-db = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa. The default realm
### is repository's uuid.
# realm = My First Repository
默认不改变,则没有账号密码控制、没有权限控制,所有人可读可写
如下配置:
anon-access = none 匿名登录不予许---> 用户必须登录
auth-access = write 登录的用户拥有可读可写权限
password-db = passwd 维护用户登录的账号和密码
authz-db = authz 维护用户的权限
realm = My First Repository 领域值
a)配置:anon-access = none 匿名登录不予许---> 用户必须登录
auth-access = write 登录的用户拥有可读可写权限
如果anon-access = none ,而没有打开password-db=passwd,则会出现不允许访问版本库:

配置:anon-access = none 匿名登录不予许---> 用户必须登录
auth-access = write 登录的用户拥有可读可写权限
password-db = passwd 维护用户登录的账号和密码
如果passwd中没有配置账号和密码,则也不能访问。
因此,必须正确配置账号和密码。【当然访问时候必须输入配置了的账号和密码,否则,验证不通过】
b)配置:anon-access = none 匿名登录不予许---> 用户必须登录
auth-access = write 登录的用户拥有可读可写权限
password-db = passwd 维护用户登录的账号和密码
authz-db = authz 维护用户的权限
如果打开了authz-db = auth,但是authz中未配置登录用户的权限,则会出现认证错误:

因此,必须在权限文件authz中为用户配置正确的权限。
5、启动SVN和访问
svnserve -d -r /var/svn/svnrepos
启动时候可以指定目录是所有版本库的,也可以指定到某一个版本库。两种情况下,authz的权限配置会不一样。
6、访问svn版本库
小乌龟访问svn://ip:3690/app 【SVN启动默认的端口为3690,app为版本库】
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
下一篇:浅谈Semaphore类
- IDEA 设置热部署 Devtools 2020-06-10
- Linux简单命令的学习 2020-06-10
- Centos下Zookeeper的安装部署 2020-06-06
- Idea实现SpringBoot外置Tomcat的Web项目热部署(包含静态文 2020-06-04
- 微服务项目持续集成部署流程简介 2020-05-27
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash
