本文简单介绍Ubuntu系统下SVN的搭建过程
创新互联公司主营岳池网站建设的网络公司,主营网站建设方案,成都app软件开发公司,岳池h5小程序定制开发搭建,岳池网站营销推广欢迎岳池等地区企业咨询
更新源
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的过程,大家如有疑问可以留言,或者联系站长。感谢亲们支持!!!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!
成都服务器托管选创新互联,先上架开通再付费。
创新互联(www.cdcxhl.com)专业-网站建设,软件开发老牌服务商!微信小程序开发,APP开发,网站制作,网站营销推广服务众多企业。电话:028-86922220
文章标题:Ubuntu16.04.5LTS安装SVN的过程
URL标题:http://www.36103.cn/qtweb/news32/28032.html
网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联