Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install SVN for Ubuntu16.04.5LTS

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install SVN on Ubuntu 16.04.5LTS. Xiaobian thinks it is quite practical, so share it with you as a reference. I hope you can gain something after reading this article.

update source

sudo apt-get update

Install SVN

sudo apt-get install subversion

create folders

sudo mkdir /home/svnsudo mkdir /home/svn/repositorysudo chmod -R 777 /home/svn/repositorysudo svnadmin create /home/svn/repositorycd /home/svn/repository/sudo chmod -R 777 db

Modify svnserve.conf

cd /home/svn/repository/conf/sudo vi svnserve.conf

Modify these four lines as follows

anon-access = none anonymous user unreadable auth-access = write permission user writable password-db = passwd password file for passwdauthz-db = authz permission file for 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.

Modify password file to add access user

sudo vi passwd[users]# harry = harryssecret# sally = sallyssecretlidata = lidata429

Add directory permissions to users

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

Start the service and listen on port 81

sudo svnserve -d -r /home/svn --listen-port 81

Check if svn is started

ps -ef | grep svnserve

stop service

kill all svnserve

About "Ubuntu 16.04.5LTS how to install SVN" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report