Configure SVN server Svnserve under Ubuntu 14

Source: Internet
Author: User
Tags svn

First install subversion under Ubuntu

Apt-get Install Subversion

Create a folder Mkdir/mnt/hgfs/sharefile/wwwroot/svn

Build the repository svnadmin CREATE/MNT/HGFS/SHAREFILE/WWWROOT/SVN

[Email protected]:/home/wwwroot/default# cd/mnt/hgfs/sharefile/wwwroot/svn[email protected]:/ mnt/hgfs/sharefile/wwwroot/svn# lsconf  db  format  hooks  locks  README.txt

# Our main concern is the Conf and DB files, the Conf folder is the main configuration file and the user, the permissions location, the DB folder is to store the SVN dump data.

Go to Conf folder

[Email protected]:/mnt/hgfs/sharefile/wwwroot/svn/conf# ls

Authz Hooks-env.tmpl passwd svnserve.conf

Authz file is to set user rights, passwd file is to store users and passwords, svnserve.conf is the master profile, first configure the master configuration file.

Vim svnserve.cnf

The file is empty by default and needs to be edited by us.

Anon-access = None #匿名访问权限, default Read,none to not allow access
auth-access = Write #认证用户权限
Password-db = passwd #用户信息存放文件, the default is below the repository/conf, you can also specify the file location by absolute path
Authz-db = Authz

Edit User name password file vim passwd

One line, user name = password, clear text

Edit Permissions Vim Authz

root directory

Fover user Read and Write permissions RW

Start SVN service

Svnserve–d–r/mnt/hgfs/sharefile/wwwroot/svn

NETSTAT–ANTP | grep svnserve

See there are 3690 ports on listening! Server configuration OK.

Then connect to SVN on Windows

Baidu Download TortoiseSVN

And then

Checkout folder

Enter the account password, OK, the connection is complete!

Configure SVN server Svnserve under Ubuntu 14

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.