CentOS 6.3 + Subversion + Usvn build a Version Management Server

Source: Internet
Author: User
Tags version control system fully qualified domain name

CentOS 6.3 + Subversion + Usvn build a Version Management Server

I. Introduction to Subversion
Subversion is a free and open-source version control system. Under Subversion management, files and directories can go beyond time and space. Subversion stores files in the central version library. This version library is similar to a common file server. The difference is that it can record every file and directory modification. In this way, you can recover the data to a previous version and view the data change details. Because of this, many people regard the version control system as a magic "time machine ".

2. Prepare the environment
Use one CentOS 6.3.

[Root @ localhost ~] # Uname-
Linux yxp2p. server 2.6.32-279. el6.x86 _ 64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

[Root @ localhost ~] # Vim/etc/selinux/config

Set SELINUX = disabledt and disable selinux after restart.

[Root @ localhost ~] # Setenforce 0
Setenforce: SELinux is disabled

Check whether selinux is disabled.

Iii. Installation

1. install required software
[Root @ localhost ~] # Yum install subversion httpd mod_dav_svn php-mysql-server perl-DBI perl-DBD-mysql-devel mod_auth_mysql

Check whether the subversion is successfully installed, for example:

2. Start httpd and mysqld services

[Root @ localhost ~] # Service httpd start
Starting httpd: cocould not reliably determine the server's fully qualified domain name, using yxp2p. server for ServerName
[OK]
[Root @ localhost ~] # Service mysqld start
Starting mysqld: [OK]

 

Set the mysqld password after startup, which must be used later when usvn is installed

[Root @ localhost ~] # Mysqladmin-u root password 123123

 

3. Configure startup

[Root @ localhost ~] # Chkconfig svnserve on sets the svn service to start at random.

 

4. Configure Usvn

[Root @ localhost ~] # Wget https://github.com/usvn/usvn/archive/1.0.7.tar.gz

[Root @ localhost ~] # Tar zxvf 1.0.7

[Root @ localhost ~] # Music usvn-1.0.7 // home/webroot/usvn 

[Root @ localhost ~] # Chown-R apache: apache/home/webroot/usvn

[Root @ localhost ~] # Vim/etc/httpd/conf/httpd. conf

Alias/usvn "/home/webroot/usvn/public"
<Directory "/home/webroot/usvn/public">

Options + SymLinksIfOwnerMatch

AllowOverride All

Order allow, deny

Allow from all

</Directory>

Restart httpd after Configuration
[Root @ localhost ~] # Service httpd restart
Use IE to open http: // 172.16.11.89/usvn/step by step. If you cannot open http: // 172.16.11.89/usvn/, check whether your iptables and selinux are restricted.

 

When the above prompt appears, try to disable SElinux to see if it can be solved.

 

The following interface is displayed when the access is normal.

 

Step 4. If the default value is invalid, adjust it.

 

 
Change to the following path to proceed to the next step

 

My local repository address is/home/subversion. Pay attention to setting directory permissions.

[Root @ localhost ~] # Mkdir-p/home/subversion

[Root @ localhost ~] # Chown-R apache: apache/home/subversion

 

 

 
Change to the following path to proceed to the next step
Enter the mysqld username and password created above, and check "create database". If you have not installed php-pdo, an error is returned.

 

Create an account to log on to and manage usvn

 

 

 

Copy the following code to/etc/httpd/conf/httpd. conf.

 

[Root @ localhost usvn] # vim/etc/httpd/conf/httpd. conf

 

Click "connect to USVN" to log on.

 

Now the entire subversion and USVN are built. You need to use USVN to test whether users, user groups, and projects are created normally.

Reference link:

Build a Subversion + USVN environment in Ubuntu

Subversion configuration instances in Linux

CentOS 6.2 SVN setup (YUM installation)

Build an SVN server using Apache + SVN

Set up and use the SVN server in Windows + reset the password on the client

Install SVN in Ubuntu Server 12.04 and migrate Virtual SVN data

Build svn service and migration method on Ubuntu Server

Build SVN server with online storage

Subversion (SVN) Details: click here
Subversion (SVN): click here

This article permanently updates the link address:

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.