CentOS6.5 install SVN & amp; visual management tool iF. SVNAdmin

Source: Internet
Author: User

CentOS6.5 install SVN & visual management tool iF. SVNAdmin

Actual system environment:

CentOS 6.5x64

1. install Apache

Usually the system has been installed, but it is not installed on my server, so you need to install:

# Yum install httpd

Ii. Install SVN

Install using yum according to the SVN official website guide:

# Yum install subversion mod_dav_svn

Iii. Configure SVN

After SVN is installed, the/etc/httpd/conf. d/subversion. conf file is generated by default.

# Vim/etc/httpd/conf. d/subversion. conf

Change to the following:

4. Create SVN repo directory and permission information directory

# Mkdir/var/www/svn

# Mkdir/var/www/svnconfig

5. Create SVN permission files and password files

# Touch/var/www/svnconfig/accessfile

# Touch/var/www/svnconfig/passwdfile

6. install php

# Yum install php

7. Install iF. SVnAdmin

Download: svnadmin-1.6.2.zip files

# Wget http://sourceforge.net/projects/ifsvnadmin/files/svnadmin-1.6.2.zip/download

Decompress:

# Unzip svnadmin-1.6.2.zip

Extract the extracted file iF. SVNAdmin-stable-1.6.2 to/var/www/html/svnadmin

# Cp-r iF. SVNAdmin-stable-1.6.2 // var/www/html/svnadmin

Change the read/write mode of the data Directory

# Chmod-R 777/var/www/html/svnadmin/data/

Change/var/www/html/svnadmin/ownership

# Chown-R apache: apache/var/www/html/svnadmin/

Change the read/write mode of/var/www/svn

# Chmod-R 777/var/www/svn

Change the read/write mode of the following two files

# Chmod 777/var/www/svnconfig/accessfile

# Chmod 777/var/www/svnconfig/passwdfile

8. Start the apache service

#/Etc/init. d/httpd restart

After the startup, enter http: // server address (192.168.1.51)/svnadmin/in the browser and log on. The default user name and password are admin, for example:

After logging on, enter the path of each configuration file and click Test to Test whether the configuration is successful. Save configration:

If data already exists in the permission file, you need to select a user as the super administrator as follows:

Save and log on again with the super administrator, as shown below:

After logging on, you can see the software version information, existing warehouses, users, groups, permission paths, and so on:

Homepage: Page

Code repository: Page

User Management: Page

Group Management: Page

Access path: Page

When a new warehouse is added, the following situations may occur:

To create a new warehouse, run the following command:

# Svnadmin create/var/www/svn/ccc

# Chown-R apache: apache/var/www/svn/ccc

Then, the newly created ccc repository is displayed in Repositories:

Basic management:

1. Move the version Library:

Move a1 in database A to database B and change it to b3.

Check out a1 to/tmp/a1: svn checkout http: // 127.0.0.1/svn/A/a1/tmp/a1

Import a1 to database B: svn import/tmp/a1 http: // 127.0.0.1/svn/B/b3

(The. svn hidden files in the directory are automatically skipped during the import process)

2. Forgot to manage the password

Use htpasswd:

Htpasswd-m User File Name username (new user is also available)

For more instructions, see # man htpasswd

IX. Set svn startup

Svn will not be automatically started by default after installation. The following settings are required:

1. First, write a STARTUP script svn_startup.sh.

Then modify the execution permission of the script.

# Chmod 777 svn_startup.sh

Finally, add auto run

Vi/etc/rc. d/rc. local

Add the script path at the end, for example:

/Root/svn_startup.sh

Now, you can restart it. How can I confirm the success? Lost to you

Ps-ef | grep svnserve

Set up SVN server SVN in Ubuntu 14.04 ://

CentOS 6.2 SVN setup (YUM installation)

Deploy Apache + SVN in CentOS 6.5

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

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

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.