Redhat Linux Install SVN server Collabnetsubversionedge

Source: Internet
Author: User
Tags collabnet subversion

Please read the Readme file that comes with the installation package carefully!

=================================================

1. Go to the official website first, find the installation package;

http://subversion.apache.org/

Http://www.collab.net/downloads/subversion

I downloaded the collabnetsubversionedge-4.0.8_linux-x86.tar.gz.

2. Create an SVN account such as named Svnuser, followed by the user to install, start the SVN service

Useradd svnuser//Plus users

passwd svnuser//Set Password

3. Add Svnuser to Sudeor

A. Execute chmod u+w/etc/sudoer Open Modify permissions First
B. Then modify it with the root user and save the exit after the modification is completed.

Find root all= (all) all, add Svnuser all= (All) to the next line and save exit
C. Re-execute chmod u-w/etc/sudoer turn off Modify permissions

4. Installation requires Java and Python environments

Java-version

Python-v

To determine if there are already Java and Python environments, please install them yourself

5. Setting the Java environment variables

Export Java_home=/usr/java/default

The following path uses Whereis Java/which java to determine

My Java execution path is in/usr/bin/java, so export java_home=/usr

Execute the following command to test whether the environment variable is valid:
# $JAVA _home/bin/java-version
Java Version "1.6.0_20"
Java (TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot (TM) Client VMs (build 16.3-b01, mixed mode, sharing)

6. Switch to the directory where you want to install CollabNet subversion, and I will install SVN to/opt/under this installation.
$ cd/opt
7. After extracting the file, a directory named "CSVN" is generated under the current directory.
$ tar zxf collabnetsubversionedge-x.y.z_linux-x86.tar.gz

8. In order to install subversion, you need to have root privileges, or use sudo to get root privileges (3rd step Svnuser has been granted permission)
$ su-svnuser
$ CD CSVN
$ sudo-e BIN/CSVN Install

In addition to configuring your system so, the server is started
With the system, it would also write the current java_home and the
Current username on to the file data/conf/csvn.conf. Can edit this
File if needed as it controls the startup settings for the application.
By setting the Java_home and Run_as_user variables in this file, it
Ensures they is set correctly when the application is run.

9. Start Subversion Service, cannot run with root, use Svnuser.
$ BIN/CSVN Start

Ten. Optional. Configure the Apache Subversion server to start automatically when the system boots. Also use Svnuser
$ CD CSVN
$ sudo bin/csvn-httpd Install

============================================

Reference Documentation:

Http://blog.sina.com.cn/s/blog_6ffa25ae01015vz9.html

http://blog.csdn.net/hazy/article/details/8771806

http://blog.163.com/[email protected]/blog/static/17090237920130241326141/

Http://hi.baidu.com/ttyard/item/8fe1960ac32e5574bfe97eef

http://bbs.csdn.net/topics/360115598

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.