CentOS System Installation Configure SVN server steps

Source: Internet
Author: User
Tags svn svn client centos iptables firewall

SVN installation

The installation is simple:

The code is as follows Copy Code
# Yum Install Subversion
# yum Install MOD_DAV_SVN

Package installation methods for different distributions see http://subversion.apache.org/packages.html, http://www.111cn.net of course, some distributions or not idle trouble can be directly compiled installation of the source code

After installation, check to see if it worked.

The code is as follows Copy Code
# Svnserve--version

The normal display of the version information is accomplished

Build a version Library

The code is as follows Copy Code
#mkdir/SVN
# svnadmin Create/svn/project

/svn/project is the path to the build warehouse that can theoretically be used for any directory

SVN configuration

Enter the configuration directory of the established warehouse/svn/project/conf modify the file svnserve.conf

The code is as follows Copy Code
[General]
Anon-access = none//anonymous Access
auth-access = write//authenticated user rights
PASSWORD-DB = passwd//password profile path, default to passwd file in same directory
Realm = svnofmyproject//certification mark only

Remove the # before the corresponding line to make the statement effective, remember not to leave the front blank

Configure User name password

modifying passwd files in the same directory as the configuration files

The code is as follows Copy Code

[Users]
USR1 = PSW1
USR2 = PSW2
Start the SVN server

# svnserve-d-R/SVN--listen-host 192.168.1.100

-D indicates running in the background,---r specifies the root directory of the server, so that the SVN client can use Svn://192.168.1.100/project to access the SVN server

By the way, use the following command to view the running SVN process

The code is as follows Copy Code

# Ps-ef | grep SVN
Using commands

# Killall Svnserve
Or

# kill-9 xxxx
To stop the SVN server.

By this point, performing co on the server should be fine. But other terminals may not be able to access our servers through SVN.

Firewall configuration

SVN's default port is 3609, to open the port on the firewall.

The code is as follows Copy Code
#/sbin/iptables-a input-i eth0-p tcp--dport 3690-j ACCEPT
#/sbin/service Iptables Save

It is best to look at the eth0 this parameter, if your server just like mine has a lot of network cards, and that again use is not eth0 words, it is necessary to modify

View network parameters can be used

The code is as follows Copy Code
# ifconfig

So far, we should be able to successfully connect to the remote SVN server. Well, checkout can use

The code is as follows Copy Code
# SVN Co svn://192.168.1.100/project

Then you are prompted to enter the previously configured username and password.

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.