Create a Linux SVN repository file and install and configure it

Source: Internet
Author: User

I want to learn about the endless knowledge of the Linux SVN system. I predict that you may encounter a problem in the installation of Linux SVN under FEDORA. The following describes how to install the Linux SVN system. Installation and configuration of Linux SVN

Step 1

Install subversion yum install subversion

Step 2

Install apache's Linux SVN module yum install mod_dav_svn

Step 3

Create a Linux SVN repository file mkdir/svn

Step 4

Create a Linux SVN database and modify/svn user group and user svnadmin create/svn/repos/chown-R apache. apache/svn

Step 5

Edit/svn/repos/conf/svnserve. confvi/svn/repos/conf/svnserve. conf
5-1. change # anon-access = read # auth-access = write to anon-access = none. If this parameter is not set to none, "Read access denied for root of edit") auth-access = write
5-2. Change # password-db = passwd to password-db = passwd.
5-3. you can set the configuration file "/svn/repos/conf/authz" for svn access and read/write permission only after # authz-db = authz is set here. Note: "svn:/svn/repos/conf/svnserve. conf: 12: Option expected "occurs because subversion reads the configuration file svnserve. the configuration with leading spaces cannot be identified during conf, so leading spaces are not allowed.

Step 6

Linux SVN adds a user password and sets Access Permissions
6-1.vi/svn/repos/conf/passwd such as [users] # user = passwordsvnuser = svnusertest = test
6-2.vi/svn/repos/conf/authz append the following text [/] svnuser = rw [/] test = r

Step 7

Synchronize each submitted file with/var/www/html, you can directly access the letter A post-commit file cp post-commit.tmpl post-commitvi/svn/repos/hooks/post-commit write the following content :#! /Bin/shexport LANG = en_US.UTF-8svn update/var/www/html -- username svnuser -- password svnusersvn update/var/www/html -- username test -- password test and, change this file to 777. First, add chmod 777 post-commitchown apache to/var/www/html after/var/html checkout on the server. apache post-commit

Step 8

Run the subversion Service (optional) vi/etc/rc. local Add the following command:
#! /Bin/sh
#
# This script. will be executed * after * all the other init scripts.
# You can put your own initialization stuff in here if you don't
# Want to do the full Sys V style. init stuff.
Touch/var/lock/subsys/localsvnserve-d-r/svn/repos

Step 9

Set the apache Linux SVN configuration file vi/etc/httpd/conf. d/subversion. conf <Location/repos> DAV svn SVNParentPath/svn
# Limit write permission to list of valid users.
# <Limitaskt get propfind options report>
# Require SSL connection for password protection.
# SSLRequireSSL
#
# AuthType Basic
# AuthName "Authorization Realm"
# AuthUserFile/path/to/passwdfile
# Require valid-user
# </Limit10000t> </Location>
Remove the corresponding # and change the path to the above one.

Step 10

Restart the server svnserve -- daemon -- root =/svn -- listen-port = 3690

Step 11

Create a project svnProjectmkdir/tmp/svnProjectmkdir/svn/repos/svnProjectsvn import/tmp/svnProject file: // svn/repos/svnProject-m "initial import"

Step 12

In the server checkout svn: // 127.0.0.1/repos/var/www/html

Step 13

OK. You can use another machine to access the server, for example, the code that commit to the Data Warehouse after the Intranet IP Address: 192.168.1.226svn: // 192.168.1.226/repos/svnProjecttest Project address http: // 192.168.1.226/svnProject, it is synchronized with/var/www/html of the 192.168.1.222 server. In addition, you can set a project for each data warehouse.

  1. Virtual Machine VMware Tools for Linux green Lite version
  2. Linux Kernel compilation and installation of RTAI
  3. Linux 2.6 kernel compilation and configuration installation and upgrade
  4. Upgrade the Linux system from Fedora 10 to Fedora 12
  5. Follow Xiaolong to learn Linux: Install QQ's Linux Client

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.