iis服务器助手广告广告
返回顶部
首页 > 资讯 > 操作系统 >Ubuntu16.04.5LTS安装SVN的过程
  • 386
分享到

Ubuntu16.04.5LTS安装SVN的过程

Ubuntu16.04.5LTS安装SVNUbuntu安装ubuntu16安装 2022-06-04 23:06:38 386人浏览 薄情痞子
摘要

本文简单介绍ubuntu系统下SVN的搭建过程 更新源 sudo apt-get update 安装SVN sudo apt-get install subversion 创建文件夹 sudo mkdir /home

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

--结束END--

本文标题: Ubuntu16.04.5LTS安装SVN的过程

本文链接: https://www.lsjlt.com/news/20786.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作