Linux CentOS Installation Configuration SVN server

Source: Internet
Author: User
Tags svn svn client centos server

The installation of the CentOS server Configuration svn (subversion), in fact, is very simple, but sometimes in the configuration of the process of the individual details if you do not pay attention, it will be easy to cause the situation can not be accessed.

Online This kind of explanation a lot, the following steps are the whole is unchanged, will add a bit of their own problems to solve the process and methods.

-------------------------------------------------------------------------------------

Online Installation Method:

1. To see if SVN is currently installed:

#rpm-qa | grep svn

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7E/46/wKiom1b7PneTLnFRAAA63xVWRD0534.jpg "title=" Svn-1.jpg "alt=" Wkiom1b7pnetlnfraaa63xvwrd0534.jpg "/>

The above prompts have been installed.


2, if it is already installed, can be used directly, you can uninstall and reinstall yourself.

1)# yum install svn* #会把所有SVN相关的服务和应用全部安装上

"or # Yum install SUBVERSION/SVN"


3, after the installation is successful, configure:

When the installation is complete, several SVN binaries are generated in the bin directory.

#svn--help # See how SVN is used.


4, create the Repository, configuration file:

1)#mkdir/var/svn/repos1 #创建SVN版本所在的目录/var/svn, create the first repository repos1 directory


2)#svnadmin create/var/svn/repos1 #创建版本库. After this command is executed, the following files are automatically generated under the REPOS1 directory


3) Enter the Conf directory (configuration file directory of the REPOS1 repository)

Authz file is a permission control file

passwd is the account password file

Svnserve.conf SVN service configuration file


<1>PASSWD set user name, password:

#vi passwd

Add user and password in [users] block, format: account = password, such as jeff=jeffroot (= space on both sides is not necessary, can add multiple users)

<2>authz Set Permissions:

#vi Authz

add code at the end:

JEFF=WR #用户jeff的权限是可读写, multiple users can set permissions individually
<3> Modify svnserve.conf file configuration:

#vi svnserve.conf

Open the comments for the following lines:

non-access = Read #匿名用户可读

auth-access = Write #授权用户可写

password-db = passwd #使用哪个文件作为账号文件

authz-db = Authz #使用哪个文件作为权限文件

realm =/var/svn/svnrepos # certified space name, repository directory

* * * * NOTE: There are no spaces in front of the comments on the previous lines, otherwise you will get an error, unable to connect to the repository. ****


5. Start the repository:

#svnserve-D-r/var/svn/repos1


6, the installation configuration is complete, can be tested.

we recommend using the Windows version of SVN client tortoisesvn.


-------------------------------------------------------------------------------------

Some notes:

1,/var/svn/repos1/conf directory in the configuration file svnserve.conf a few lines in the comments removed, be sure to shelf, or error prone .


2, after starting the repository, you may be prompted that the current port/app is already in use, that is, a port conflict, either kill the current SVN service and then turn it back on, or open a new port for this repository (recommended).

There may be multiple repositories, each of which requires a single port, or it will conflict.

#svnserve-D-r/var/svn/repos1--listen-port 3691 #SVN默认端口是3690

This will require a port number for the SVN address URL to be accessed: svn://x.x.x.x:3691


3, also pay attention to the firewall policy, you can temporarily shut down the firewall, to exclude the impact of iptables:

#/etc/init.d/iptables Stop #或者#service iptables Stop


4, check if there is a port conflict by looking at the SVN process:

#ps-aux | grep svn


-------------------------------------------------------------------------------------

This article comes from "Crazy for Technology!" "Blog, be sure to keep this provenance http://chidongting.blog.51cto.com/1903900/1758323

Linux CentOS Installation Configuration SVN server

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.