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的过程,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对华域联盟网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!

相关文章

  • Ubuntu 20.04 apt 更换国内源的实现方法

    Ubuntu 20.04 apt 更换国内源的实现方法

    这篇文章主要介绍了Ubuntu 20.04 apt 更换国内源的实现方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

    2020-05-05

  • linux下open-vswitch安装卸载操作

    linux下open-vswitch安装卸载操作

    这篇文章主要为大家详细介绍了linux下open-vswitch安装卸载的相关代码,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

    2018-09-09

  • centos下root运行Elasticsearch异常问题解决

    centos下root运行Elasticsearch异常问题解决

    这篇文章主要介绍了centos下root运行Elasticsearch异常问题解决的相关资料,Elasticsearch异常问题解决办法详细介绍,需要的朋友可以参考下

    2016-11-11

  • 详解linux下避免僵尸进程的几种方法

    详解linux下避免僵尸进程的几种方法

    本篇文章主要介绍了详解linux下避免僵尸进程的几种方法,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧

    2018-02-02

  • 腾讯云ubuntu服务器tomcat访问慢的原因分析及解决方法

    腾讯云ubuntu服务器tomcat访问慢的原因分析及解决方法

    在腾讯云上配了个一元的学生云,开始一切正常,直到配置tomcat开始出现各种莫名其妙的问题。最终找到问题的原因。下面小编通过本教程给大家介绍下腾讯云ubuntu服务器tomcat访问慢的原因分析及解决方法,一起看看吧

    2016-10-10

  • 详解Linux下你所不知道的7个SSH命令用法

    详解Linux下你所不知道的7个SSH命令用法

    这篇文章主要介绍了Linux SSH命令,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

    2019-05-05

  • Tomcat中的startup.bat原理详细解析

    Tomcat中的startup.bat原理详细解析

    在windows操作系统中,我们运行tomcat只需要执行startup.bat脚本就好,这个startup.bat脚本到底是什么?下面这篇文章就来给大家详细的解析了关于Tomcat中startup.bat原理的相关资料,需要的朋友可以参考借鉴,下面来一起看看吧。

    2017-09-09

  • 安装ubuntu时黑屏的解决办法(3种)

    安装ubuntu时黑屏的解决办法(3种)

    这篇文章主要介绍了安装ubuntu时黑屏的解决办法(3种),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

    2019-11-11

  • linux线程间的同步与互斥知识点总结

    linux线程间的同步与互斥知识点总结

    在本篇文章里小编给大家整理的是关于linux线程间的同步与互斥的相关知识点,有兴趣的朋友们学习下。

    2019-11-11

  • linux 下 g++编译程序时-I(大写i) 与-L(大写l)-l(小写l) 的作用详解

    linux 下 g++编译程序时-I(大写i) 与-L(大写l)-l(小写l) 的作

    这篇文章主要介绍了linux 下 g++编译程序时-I(大写i) 与-L(大写l)-l(小写l) 的作用,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

    2020-03-03

最新评论

声明:本站(华域联盟www.cnhackhy.com)所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。