Set up svn and svn service configuration in Linux

Source: Internet
Author: User
Tags tortoisesvn download
Because I used Git version control tools all the time, I tried svn in linux this time. I am Centos6.x and use yum for installation. Li

Because I used Git version control tools all the time, I tried svn in linux this time. I am Centos 6.xand use yum for installation.

The svn construction process in Linux is as follows:


1. First, check whether you have installed svn. if you have already installed svn, you don't have to worry about it.
Rpm-qa | grep subversion

2. if not, install svn.
Yum-y install subversion

3. test whether svn is successfully installed.
Svn -- version

Svn service configuration:
1. create a repository first
Svnadmin create/var/www/test_repo

2. configure the directory attributes and user permissions. if The repository is created successfully, you will see three files, svnserve. conf, passwd, and authz, under the test_repo/conf folder.
(1) set repository permissions, vi svnserve. conf

anon-access = noneauth-access = writepassword-db = passwdauthz-db = authz

(2) configure the user and password, vi passwd
[users]mckee = phpddt.com

(3) configure user operation permissions vi authz
[test_repo:/]mckee = rw

3. now you can start the svn service.
Svnserve-d-r/var/www -- listen-host 42.121.145.230
You can check whether the service is successfully started:
Netstat-tunlp | grep svn

In this simple way, the svn service has been set up, and you can checkout a working copy. because I actually write code in windows, I used the integrated GUI tool (TortoiseSvn download ).

Related Article

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.