Install SUBVERSION on YUM in CENTOS for SVN server

Source: Internet
Author: User
Tags svn centos

Svn (subversion) is a version management tool that has emerged in recent years and is the successor of cvs. Currently, most open-source software uses svn as the code version management software.
The following describes how to install the subversion.

1. Install subversion, Apache, and svn extensions.
If you directly use Centos to install the package in the source, the dependency is automatically resolved.

Yum install subversion httpd mod_dav_svn-y

2. Set startup.

Pass

[Root @ bak var] # chkconfig -- list | grep svn
Svnserve 0: close 1: close 2: Close 3: close 4: Close 5: close 6: Close
[Root @ bak var] #

We can see that svnserve has already appeared.
We can use the following method to set the startup mode.

[Root @ bak var] # chkconfig svnserve on
[Root @ bak var] # chkconfig -- list | grep svn
Svnserve 0: disable 1: disable 2: Enable 3: Enable 4: enable 5: Enable 6: disable
[Root @ bak var] #

After setting, check again. The running levels 2, 3, 4, and 5 are started by default.
This ensures that the svn service is directly started after the server is started.
Set apache in the same way.

[Root @ bak test] # chkconfig httpd on

3. Enable and disable Subversion.
Pass

[Root @ bak var] # service svnserve

Usage:/etc/init. d/svnserve {start | stop | status | restart | condrestart | try-restart | reload | force-reload}
We can see that the/etc/init. d/svnserve script provides the above functions, such as starting, stopping, viewing status, and re-configuring.
We can directly use the following method to manage the svnserve service:


Service svnserve start service
Service svnserve stop service
Apache management is the same as above.

4. Configure svn for http access.

Modify the httpd configuration file/etc/httpd/conf/httpd. conf
The following configuration is directly added at the end of the configuration file:

<Location/svn>
DAV svn
SVNParentPath/var/cvs # sets this directory as the svn directory.
SVNListParentPath on
</Location>

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.