SVN server construction in CentOS

Source: Internet
Author: User

SVN server construction in CentOS

Although it is very easy to build an SVN server on Windows, the efficiency is not high, of course, compared with Linux, but it is a little more complicated to build SVN on Linux than on Windows, so this article will teach you how to build a SVN server on CentOS in detail.

Install
# Yum install subversion

1) Create svn users
# Groupadd svn
# Useradd-g sky user // Add the user to the sky Group
Switch user
# Su svn
This account will be used for subsequent code library creation and maintenance.

2) create a version Library
Add the following configuration to edit. bash_profile:
SVN_HOME =/opt/lampp/htdocs/_ svn
Export SVN_HOME
PATH = $ PATH: $ SVN_HOME/bin
Export PATH

Create a version Library:
# Svnadmin create -- fs-type fsfs web
In this case, conf/db/format hooks/locks/README.txt appears under/opt/lampp/htdocs/_ svn/web.

3) set the user name and password for web Access
Edit the file/opt/lampp/htdocs/_ svn/web/conf/passwd
In [users], set the user name and password in the following format:
Username 1 = PASSWORD 1
Username 2 = PASSWORD 2
For example, test = test indicates that the user name is test and the password is test.

Zookeeper file/opt/lampp/htdocs/_ svn/web/conf/authz
[Groups]
Www = 7di, user1, user2, user3, user4, user5, user6, wasing

[/]
@ Www = rw
* =

Edit the file/opt/lampp/htdocs/_ svn/web/conf/svnserve. conf
Add several lines of Configuration:
Anon-access = read
Auth-access = write
Password-db = passwd
Authz-db = authz
Note: The first letter of money in the row where the configuration of these rows is located cannot have any space. Otherwise, errors such as svnserve. conf: 12: Option expected may occur.
Now, with the above configuration, you can use svn.

4) Connection

If svn is already running, you can run it on another port.
Svnserve-d-r/opt/lampp/htdocs/_ svn/web -- listen-port 3391
In this way, the same server can run multiple svnservers.

Or run the following commands to terminate the process.
Netstat-ntlp
Kill-9 id

Okay. After the startup is successful, you can use it.
We recommend that you use TortoiseSVN. The connection address is svn: // URL/hosts. (If you specify a port, add Port: port number)
After the connection, you can upload local files to effectively manage your code.

If the primary node is connected to the primary node, check the fire prevention device.
# Vi/etc/sysconfig/iptables
Add:-a input-m state -- state NEW-m tcp-p tcp -- dport 3690-j ACCEPT
# Service iptables restart

Create a script to start Subversion:
# Echo 'svnserve-d-r/opt/lampp/htdocs/_ svn/'> start_svn.sh
# Chmod 0777 start_svn.sh
#./Start_svn.sh

Place the startup script in the Automatic startup script:
Modify the file as root:/etc/rc. d/rc. local and add the following text:
Su-c/opt/lampp/htdocs/_ svn/start_svn.sh svn

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

This article permanently updates the link address:

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.