Ubuntu16.04.5LTS安装SVN的过程

 更新时间:2019年12月02日 12:06:00   作者:请叫我算术嘉  
这篇文章主要介绍了Ubuntu16.04.5LTS安装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的过程,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!

相关文章

  • Ubuntu18.04 安装 Anaconda3的教程详解

    Ubuntu18.04 安装 Anaconda3的教程详解

    这篇文章主要介绍了Ubuntu18.04 安装 Anaconda3的教程,本文通过实例图文相结合给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
    2020-03-03
  • 由Apache 500错误引出的临时文件问题分析解决

    由Apache 500错误引出的临时文件问题分析解决

    最近老是发觉centos下的php出现各种各样的问题,先是smarty大点就中断执行,然后,运行速度好像变慢,到今晚。。。,终于罢工了--500内部错误。
    2014-07-07
  • linux 编译安装python3.6的教程详解

    linux 编译安装python3.6的教程详解

    这篇文章主要介绍了linux 编译安装python3.6的教程,本文通过图文并茂的形式给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下
    2018-10-10
  • 详解ubuntu安装CMake的几种方式

    详解ubuntu安装CMake的几种方式

    这篇文章主要介绍了详解ubuntu安装CMake的几种方式,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
    2020-08-08
  • linux中批量添加文件前缀的操作方法

    linux中批量添加文件前缀的操作方法

    这篇文章主要介绍了linux中批量添加文件前缀的操作方法,给大家扩展介绍linux下批量改变文件前缀命令,需要的朋友可以参考下
    2019-12-12
  • Linux之操作文件的系统调用

    Linux之操作文件的系统调用

    大家好,本篇文章主要讲的是Linux之操作文件的系统调用,感兴趣的同学赶快来看一看吧,对你有帮助的话记得收藏一下,方便下次浏览
    2021-12-12
  • 配置apache默认使用ssl的方法

    配置apache默认使用ssl的方法

    首先确认mod_rewrite已经安装,方法就是查看你的httpd.conf,搜索“LoadModule rewrite_module modules/mod_rewrite.so”,如果有,删除前面的"#"。
    2009-10-10
  • Linux文件编辑命令vi详细整理(总结)

    Linux文件编辑命令vi详细整理(总结)

    本篇文章主要介绍了Linux文件编辑命令详细整理(总结),小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
    2017-07-07
  • Linux中tcpdump命令实例详解

    Linux中tcpdump命令实例详解

    用简单的话来定义tcpdump,就是:dump the traffic on a network,根据使用者的定义对网络上的数据包进行截获的包分析工具。下面这篇文章主要给大家介绍了关于Linux中tcpdump命令的相关资料,需要的朋友可以参考借鉴,下面来一起看看吧。
    2017-08-08
  • linux中使用grep命令详解

    linux中使用grep命令详解

    在本篇文章里小编给大家整理了关于linux中使用grep命令的相关知识点内容,需要的朋友们跟着学习下。
    2019-03-03

最新评论