Ubuntu16.04.5LTS安装SVN的过程
作者:请叫我算术嘉 发布时间:2023-07-26 01:19:27
标签:Ubuntu16,安装,SVN
本文简单介绍Ubuntu系统下SVN的搭建过程
更新源
sudo apt-get update
安装SVN
sudo apt-get install subversion
创建文件夹
sudo mkdir /home/svn
sudo mkdir /home/svn/repository
sudo chmod -R 777 /home/svn/repository
sudo svnadmin create /home/svn/repository
cd /home/svn/repository/
sudo chmod -R 777 db
修改svnserve.conf
cd /home/svn/repository/conf/
sudo vi svnserve.conf
修改这四行如下所示
anon-access = none 匿名用户不可读
auth-access = write 权限用户可写
password-db = passwd 密码文件为passwd
authz-db = authz 权限文件为authz
### 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
### 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
### directory containing this file. The specified path may be a
### repository relative URL (^/) or an absolute file:// URL to a text
### file in a Subversion repository. 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
### The groups-db option controls the location of the groups file.
修改password文件,添加访问用户
sudo vi passwd
[users]
# harry = harryssecret
# sally = sallyssecret
lidata = lidata429
给用户增加目录权限
sudo vi authz
[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
# [/foo/bar]
# harry = rw
# &joe = r
# * =
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
[/]
lidata=rw
启动服务,并且监听81端口
sudo svnserve -d -r /home/svn --listen-port 81
查看svn是否启动
ps -ef | grep svnserve
停止服务
kill all svnserve
总结
以上所述是小编给大家介绍的Ubuntu16.04.5LTS安装SVN的过程,希望对大家有所帮助
来源:https://blog.csdn.net/ssjdoudou/article/details/103328059


猜你喜欢
- 再过几天就是圣诞节了,传统行业在“战斗”,网络也是烽火四起,从http://index.baidu.com(百度指数)可以看出目前有关“圣诞
- 在linux 没有实现epoll事件驱动机制之前,我们一般选择用select或者poll等IO多路复用的方法来实现并发服务程序。在linux
- 容器数据卷介绍什么是数据卷将运用与运行的环境打包形成容器运行,运行可以伴随着容器,但是我们对数据的要求是持久化的。容器之间希望有可能共享数据
- 10月21日消息,阿里巴巴B2B公司今日对外公布“中国中小企业商务服务伙伴计划”,与首批纳入计划的四家物流巨头签订战略合作协议,其中天天快递
- 现在互联网上的内容五花八门无奇不有。有时您发表了一些不该发表的内容——比如一气之下发了篇博文,事后却后悔不已;又如无意间泄露了保密数据等。大
- 在博客中留言不仅会引发众人的讨论,对于SEO也很有用。但是思亿欧这里指的不是通过大量注册博客,加自己网站链接。是用自己的站,参与到博客话题的
- 软件霸主微软或将在操作系统市场遇到强有力的竞争者,同时其占领操作系统九成份额的市场格局也将随之改变。昨日,谷歌向所有人免费开放操作系统Chr
- 现在先谈pr的定义和意义!Google网页级别。英文是Page Rank,缩写是PR。所谓网页级别,是由 Google的两位创始人Larry
- 2010年贺岁大作《仙域》除了耗时良久,斥资巨大,制作精良外,还有着丰富多彩的内容和五花八门的游戏方式。《仙域》拥有着无数别具风格的地图,更
- 环境是linux as 4在我创建dbca的时候出现如下错误:Xlib:connection to ":0.0" ref
- 在windows 2003 server中编写asp代码,你可能会碰到下面的错误提示“不允许的父路径”,涉及到的代码有:Server.Map
- 百度产品线很多,能利用起来的也有很多。如果能完美的把百度产品线都利用起来,为自己的网站带来的效果是可想而知的。今天就和大家谈谈究竟如何完美的
- 一、简介使用过Mac OS的程序员都知道,在Mac Book Pro上写程序是一件比较爽的事儿,作为dotneter,我们都比较羡慕Mac系
- Linux为美国以外的其它国家提供了自主发展操作系统的一条捷径。主要是因为Linux操作系统本身的源代码是公开的,操作系统开发方可以对源代码
- Apache 的虚拟主机就是在一台服务器上运行多个网站,每个虚拟主机都可以绑定独立的域名,为这些域名可以指定单独的目录,访问这些域名的时候,
- 当制作dedecms模板的head.htm时页面显示正常当制作index.htm模板时发现在index.htm输入中文时会出现乱码之前没有遇
- Windows Server自带的互联网信息服务器(Internet Information Server,IIS)是架设网站服务器的常用工
- 2004年,我怀着梦想来到了上海,第一次来到大城市,刚出火车站,迎面而来的风都带着浓厚的商业气息,坐在去公司报道的车上,看着路边行色匆匆的人
- 本文记录了Ubuntu 18.04下VMware Tools安装配置图文教程,供大家参考,具体内容如下1.打开虚拟机VMware Works
- 引言Rsync 是一种快速且通用的命令行实用程序,可通过远程shell在两个位置之间同步文件和文件夹。使用 Rsync,可以镜像数据,创建增