[Reserved] Linux SVN Installation and Configuration

2011-08-27  来源:本站原创  分类:OS  人气:118 

Linux SVN Installation and configuration of the original address: http://blog.sina.com.cn/s/blog_60be437a0100ikn0.html

Linux SVN Installation and Configuration
step 1

The subversion

yum install subversion

step 2

Installing the Linux SVN module apache

yum install mod_dav_svn

step 3

Establish Linux SVN repository file mkdir / svn

step 4

Establish Linux SVN repository and modify / svn user groups and users

svnadmin create / svn / repos /

chown-R apache.apache / svn

step 5

Edit / svn / repos / conf / svnserve.conf

vi / svn / repos / conf / svnserve.conf
5-1 to # anon-access = read

# Auth-access = write to anon-access = none

(If here is not set to none, then the SVN link error when "Read access denied for root of edit")

auth-access = write
5-2. The # password-db = passwd to password-db = passwd
5-3 to # authz-db = authz to authz-db = authz (here set before setting svn access read-write configuration file "/ svn / repos / conf / authz") focus on: "svn: / svn / repos / conf / svnserve.conf: 12: Option expected "occurs, the reason is: because the subversion configuration file svnserve.conf read, you can not identify the configuration of the front space, so no space in front .

step 6

Linux SVN add user password, and set access permissions
6-1.vi / svn / repos / conf / passwd

Such as [users]

# User = passwordsvnuser = svnusertest = test
6-2.vi / svn / repos / conf / authz

Additional text next record

[/] Svnuser = rw [/] test = r

step 7

Each time files are submitted to and / var / www / html sync, as you can directly access a letter to a post-commit file

cp post-commit.tmpl post-commit

vi / svn / repos / hooks / post-commit

Writes the following:

#! / Bin / shexport LANG = en_US.UTF-8

svn update / var / www / html - username svnuser - password svnusersvn

update / var / www / html - username test - password test

And this file to 777 first, before the server / var / www / html checkout after each update will be able to / var / www / html added

chmod 777 post-commit

chown apache.apache post-commit

Step 8

Run subversion service (not required)

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 up 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.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
# AuthType Basic
# AuthName "Authorization Realm"
# AuthUserFile / path / to / passwdfile
# Require valid-user
# </ LimitExcept> </ Location>
To correspond to the # removed, and modify the path to above the.

step 10

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

step 11

Establish project svnProject

mkdir / tmp / svnProject

mkdir / svn / repos / svnProject

svn import / tmp / svnProject file: / / / svn / repos / svnProject-m "initial import" / / synchronize the files in the directory to the SVN directory

step 12

Checkout time on the server

svn checkout svn: / / 127.0.0.1/repos / var / www / html

step 13

OK, you can use other machines to access the server,

For example, within the network IP: 192.168.1.226

svn: / / 192.168.1.226/repos/svnProject

test items address

http://192.168.1.226/svnProject

After the commit code to the data warehouse, and 192.168.1.222 server / var / www / html synchronization inside another, each data warehouse project can work, wants to own the associated set

Remarks:

SVN version to import file:
/ Opt / svn / bin / svn import-m "project" / var / www / dotproject svn: / / 192.168.6.109/repos1
One-m "project" to create note
/ Var / www / dotproject import files in need of
svn: / / 192.168.6.109/repos1 for SVN path.

SVN export version of the file:
svn checkout svn: / / 192.168.6.109/repos1 dotproject
Which dotproject directory name that need to import.

SVN manual:
http://www.subversion.org.cn/svnbook/1.1/

Assuming the server's external Web site to access the domain name http://yemaosheng.com/ files stored in / var / www / html / ye /
Modify the SVN repository post-commit file operations such as:
cd / var / www / svn / repos / hooks /
cp post-commit.tmpl post-commit
chown apache: apache post-commit
chmod a + x post-commit
vi post-commit
#! / Bin / sh
REPOS = "$ 1"
REV = "$ 2"
svn update / var / www / html / ye-username svnuser1-password 123456

PS: the above operation should be all right, but I have my server on FC8 tested no effect was estimated to be UTF-8 issues.
I had to first use the crontab to run once every 5 minutes instead of sh.
#! / Bin / sh
export LANG = zh_CN.UTF-8 # Note: this line causing me to toss a few hours
svn update / var / www / html / ye-username root-password 123456

相关文章
  • [Reserved] Linux SVN Installation and Configuration 2011-08-27

    Linux SVN Installation and configuration of the original address: http://blog.sina.com.cn/s/blog_60be437a0100ikn0.html Linux SVN Installation and Configuration step 1 The subversion yum install subversion step 2 Installing the Linux SVN module apache

  • linux svn installation and configuration, not with apache 2011-04-26

    http://blog.51yip.com/server/901.html Today, a colleague engaged in SVN Server , SVN Fu Wuqi I also considered Bijiao Shu Di, and when he encountered a configuration problem is the package configuration file letter authz always a problem, before when

  • linux svn installation and configuration 2010-09-04

    First, install the software to wget http://subversion.tigris.org/downloads/subversion-1.6.1.tar.gz wget http://subversion.tigris.org/downloads/subversion-deps-1.6.1.tar.gz svn's official website is http://subversion.tigris.org After extracting the ab

  • Linux system installation and configuration of Apache Subversion 2010-12-23

    Linux system installation and configuration of Subversion First, the first related to the installation package is ready, I'm using the following several packages Apr: apr-1.3.8.tar.gz and apr-util-1.3.9.tar.gz Apache: httpd-2.2.14.tar.gz Subversion:

  • Linux SVN Installation Use 2011-06-11

    Linux SVN Installation Use The Goal of the Project is to Build a Subversion Version Control System that is a compelling replacement for CVS in the Open Source community. The Software is released under an Apache / BSD-Style Open Source license. SVN is

  • Linux system installation and configuration under the Apache Subversion 2010-12-23

    Linux system installation and configuration of Subversion First, the first ready-related packages, I am using here is the following a few packages Apr: apr-1.3.8.tar.gz and apr-util-1.3.9.tar.gz Apache: httpd-2.2.14.tar.gz Subversion: subversion-1.5.

  • MyEclipse novice in the SVN installation and configuration guide 2010-11-03

    This section explain the installation of MyEclipse in the SVN configuration, mainly MyEclipse6.X and MyEclipse7.X, the following is a specific description, and I welcome that we can learn together. 1.SVN Chinese official website: http://www.subversio

  • svn installation and configuration (windows down) 2011-06-06

    Did not want to write, but found two hits in javaeye highest installation can not complete the installation of the tutorial, so I decided to write a real problem not the svn installation and configuration. Step One: Download the svn server installati

  • SVN SVN installation and configuration of integrated MyEclipse 2010-04-26

    SVN Installation: 1, the installation server ######### Installation file: SVN server ############### # Http://www.collab.net/downloads/subversion # CollabNetSubversion-server-1.6.9-1.win32.exe Click the Install CollabNetSubversion-server.exe, when th

  • SVN installation and configuration of the HTTP protocol 2010-11-06

    To solve the SVN client and server versions of the inconsistencies between (the company originally used Subversion-server-1.5.3 + TortoiseSVN-1.6.2) caused by the CruiseControl automatically get the code from the SVN version of the conflict, I've com

  • Linux, the installation and configuration Java, Ant 2010-12-02

    linux bash under the Java and Ant installed: For a long time under the windows programming, linux configure something on the little rusty today, look, the way summed up. Java is installed: 1, download Java installation package: find a place to downlo

  • SVN installation and configuration under Linux 2011-01-04

    Installation 1. Using the source file is compiled installation. A total of two source files, as follows: wget http://subversion.tigris.org/downloads/subversion-deps-1.6.15.tar.gz(subversion Source file ) wget http://subversion.tigris.org/downloads/su

  • FEDORA SVN installation and configuration under Category: Linux Comments (1), browsing (94) 2009-12-22

    0814 step 1 The subversion yum install subversion step 2 Install the apache svn module yum install mod_dav_svn step 3 Build svn repository file mkdir / var / svn step 4 SVN repository set up and modify / var / svn user groups and users svnadmin creat

  • SVN Installation and Configuration 2010-03-18

    Server operating systems: Windpws XP SP3, IP: 192.168.0.185 (32bit) Client operating systems: Windpws XP SP2 (32bit) Ready to install the software: subversion server installation package: Setup-Subversion-1.5.3.msi TSVN client: TortoiseSVN-1.6.7.1841

  • windowns svn installation and configuration under 2011-05-27

    svn is a popular version of the controller, the trial configuration is simple and convenient, first download Subversion and TortoiseSVN, and then double-click the installation, both are required after the installation is complete restart the computer

  • linux + snmp installation and configuration instructions 2011-07-21

    NMP (Simple Network Management Protocol, Simple Network Management Protocol), formerly known as simple gateway control protocol (SGMP), used to manage the communication line. SNMP Installation Installation # Yum install-y net-snmp net-snmp-utils net-

  • Linux (Ubuntu) installation and configuration of Samba under 2011-07-24

    1, the simple installation: sudo apt-get install samba sudo apt-get install smbfs 2, the establishment of shared folders and set permissions mkdir /home/fredric/share chmod 777 /home/fredric/share 3, smb.conf file configuration sudo gedit /etc/samba/

  • Archive Redis in Windows, linux platform installation and configuration [turn] 2011-04-25

    In order to facilitate access to information, especially the online search to Redis order related installation configuration archive: ================================================== =========== window installation platform Redis Download: http://c

  • Linux SVN Installation using the notes 2010-04-20

    About SVN, download, install, About SVN The goal of the Subversion project is to build a version control system that is a compelling replacement for CVS in the open source community. The software is released under an Apache / BSD-style open source li

  • Linux, MySQL installation and configuration, MySQL configuration arguments detailed 2010-06-18

    First, download the compiled installation # Cd / usr / local / src / # Wget http://mysql.byungsoo.net/Downloads/MySQL-5.1/mysql-5.1.38.tar.gz # Tar – xzvf mysql-5.1.38.tar.gz .. / software / #. / Configure - Prefix = / usr / local / mysql / / MySQL F