ubuntu1804 set up SVN server

Environment: ubuntu 1804

Task: set up SVN server

Check the svn does not exist

Command: which svn or svn

Update Source: sudo apt-get update

安装svn:  sudo apt-get install subversion

svn files created home folder: # mkdir / home / svn

svn repository file in the folder is created: # mkdir / home / svn / repository

Change the repository's permissions (for the first time set up does not give permission, the Client Access server has been denied): # chmod -R 777 / home / svn / repository

Create a repository: sudo svnadmin create / home / svn / repository

The following files in the repository directory:

Db set of permissions: # chmod -R 777 db

Modify the configuration file conf / svnserve.conf

# Anonymous user readable

anon-access = read (can be changed none, i.e., unreadable)

Users can write permissions #

auth-access = write

# Passwd password file

password-db = passwd

# File permissions for the authz

authz-db = authz

 

(Remove the # in front, and the top grid, or may be error)

Add Access User conf / passwd: # vi / home / svn / repository / conf / passwd

Set user permissions conf / authz:

 

test:

Start the server: # svnserve -d -r / home / svn

Ubuntu svn checkout directory: $ svn checkout svn: //127.0.0.1/repository/.

Windows svn client: TortoiseSVN-1.8.10.26129-x64-svn-1.8.11.1420009570.msi

 

Guess you like

Origin blog.csdn.net/weixin_43279476/article/details/87854674