Ubuntu16.04.5LTS安装SVN的过程

作者:请叫我算术嘉 时间:2023-07-26 01:19:27 

本文简单介绍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

标签:Ubuntu16,安装,SVN
0
投稿

猜你喜欢

  • 在Linux上实现DB2双机HA完整方案

    2008-10-10 12:50:00
  • 黑客技术-ARP欺骗

    2010-02-21 08:41:00
  • 哥做的不是seo是ueo

    2009-08-22 17:23:00
  • 如何恢复Win 2000个人配置

    2007-09-12 14:19:00
  • 更换WordPress模板前应该注意的24个问题

    2011-07-27 18:16:04
  • 谷歌推出搜索定制功能 或是众多网站失职

    2008-12-19 13:32:00
  • 让WordPress原生相册支持lightbox效果

    2011-09-22 20:45:13
  • 什么是网页 eCPM?

    2008-02-22 14:34:00
  • 雨林木风115网络U盘 大容量新政策吸引用户

    2009-11-26 13:56:00
  • windows 2003服务器系统安全权限方案

    2008-07-31 17:37:00
  • WordPress 3.0 多站点模式设置教程

    2010-07-02 16:10:00
  • 笔/面试中常考到的一些linux脚本/管理命令

    2009-11-21 12:14:00
  • PHPWind v7.3.2收藏夹分页链接错误问题

    2009-05-31 17:34:00
  • 在VMware上创建虚拟机及安装Redhat Linux操作系统(图文教程)

    2023-11-04 10:32:42
  • 电脑报:百度已成为一台失控的敛财机器

    2008-12-01 16:23:00
  • “土豆”将闪电完成对“酷6”的并购

    2008-01-20 10:35:00
  • 优化百度比优化谷歌轻松得多 效果也好很多

    2009-02-05 12:42:00
  • phpwindV6.3关于改名后可以重复投票问题

    2009-02-20 16:03:00
  • 巨人网络回应质疑:绿色网游应重视玩家利益

    2009-11-07 14:05:00
  • 域名、DNS、A记录以及MX记录的基本概念

    2010-02-05 19:03:00
  • asp之家 网站运营 m.aspxhome.com