Install JDK_Maven_Subversion in CentOS-6.4-minimal and modify the rpm package installation path, centossubversion

Source: Internet
Author: User
Tags collabnet subversion subversion client collabnet

Install JDK_Maven_Subversion in CentOS-6.4-minimal and modify the rpm package installation path, centossubversion

/*** @ See plugin * @ see install JDK * @ see [root @ CentOS64 ~] # Cd/* @ see [root @ CentOS64/] # mkdir app * @ see [root @ CentOS64 ~] # Groupadd Develop # Add a Develop Group * @ see [root @ CentOS64 ~] # Useradd-g Develop Jadyer # create a Jadyer user and assign it to the Develop Group * @ see [root @ CentOS64 ~] # Passwd Jadyer # set or modify the Jadyer user password * @ see [root @ CentOS64/] # chown-R Jadyer: develop/app # change/app directory owner to Jadyer user and Develop Group * @ see [Jadyer @ CentOS64 software] $ tar zxvf jdk-8u40-linux-x64.tar.gz # unzip jdk * @ see [Jadyer @ CentOS64 software] $ mv jdk1.8.0 _ 40 // app/jdk1.8.0 _ 40 # store all applications in the/app directory * @ see [root @ CentOS64 ~] # Vi/etc/profile # configure the environment variables. Finally [: x] Save it. * @ see # Set Java Environment Variable * @ see JAVA_HOME =/app/jdk1.8.0 _ 40 * @ see PATH = $ PATH: $ JAVA_HOME/bin * @ see export JAVA_HOME PATH * @ see [root @ CentOS64 ~] # Echo $ PATH # view the current PATH * @ see [root @ CentOS64 ~] # Source/etc/profile # make the environment variable take effect * @ see [root @ CentOS64 ~] # Echo $ PATH # Next Look at PATH * @ see [root @ CentOS64 ~] # Java-version # verify whether the verification is successful * @ see [Jadyer @ CentOS64 ~] $ Java-version # repeated verification (this takes effect only after normal users reconnect to the server) * @ see repository * @ see install Maven * @ see [Jadyer @ localhost ~] $ Cd/app/* @ see [Jadyer @ localhost app] $ tar-zxvf apache-maven-3.2.5-bin.tar.gz * @ see [Jadyer @ localhost app] $ rm-rf apache-maven-3.2.5-bin.tar.gz * @ see [root @ localhost jadyer] # vi/etc/profile * @ see # Set Maven Environment Variable * @ see MAVEN_HOME =/app/apache-maven-3.2.5 * @ see PATH = $ PATH: $ MAVEN_HOME/bin * @ see export MAVEN_HOME PATH * @ see [root @ localhost Jadyer] # source/etc/profile * @ see [Root @ localhost Jadyer] # echo $ PATH * @ see [root @ localhost Jadyer] # mvn-version * @ see [Jadyer @ localhost ~] $ Mvn-version * @ see [Jadyer @ localhost ~] $ Cd/app/code/* @ see [Jadyer @ localhost code] $ mkdir MavenRepository * @ see [Jadyer @ localhost code] $ vi/app/apache-maven-3.2.5/conf/settings. xml * @ see <localRepository>/app/code/MavenRepository </localRepository> * @ see [Jadyer @ localhost code] $ cp/app/apache-maven-3.2.5/conf/settings. xml MavenRepository/* @ see Repository ------------------------------------------------------------------------------------- ------------ * @ See install Subversion * @ see https://www.open.collab.net/files/documents/60/11125/CollabNetSubversion-client-1.8.13-1.x86_64.rpm * @ see [Jadyer @ localhost ~] $ Rpm-q Subversion * @ see [Jadyer @ localhost ~] $ Rpm-ivh/app/CollabNetSubversion-client-1.8.13-1.x86_64.rpm * @ see warning:/app/CollabNetSubversion-client-1.8.13-1.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 35bcca43: NOKEY * @ see Preparing... ######################################## ### [1, 100%] * @ see 1: collabNetSubversion-cli ##################################### ###### [100%] * @ see [root @ localhost Jadyer] # svn -- version * @ see [root @ loc Alhost Jadyer] # vi/etc/profile * @ see # Set Subversion Environment Variable * @ see SVN_HOME =/opt/CollabNet_Subversion * @ see PATH = $ PATH: $ SVN_HOME/bin * @ see export SVN_HOME PATH * @ see [root @ localhost Jadyer] # source/etc/profile * @ see [root @ localhost Jadyer] # svn -- version *@ see [Jadyer @ localhost ~] $ Svn -- version * @ see example * @ create 2015-5-27 3:19:19 * @ author Xuan Yu 
/*** @ See rpm * @ see the rpm installation path * @ see rpm usually has the default installation path, but there are also ways to update its default installation path, but not all RPMs allow installation to other paths * @ see take CollabNetSubversion-client-1.8.13-1.x86_64.rpm and jdk-6u45-linux-amd64.rpm as an example * @ see references * @ see [Jadyer @ localhost app] $ rpm-qpi CollabNetSubversion-client-1.8.13-1.x86_64.rpm *@ see warning: collabNetSubversion-client-1.8.13-1.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 35bcca43: NOKEY * @ see Name: CollabNetSubversion-client Relocations: (not relocatable) * @ see Version: 1.8.13 Vendor: collabNet * @ see Release: 1 Build Date: Mon 23 Mar 2015 02:49:36 am edt * @ see Install Date: (not installed) Build Host: cu128.cloud.maa.collab.net * @ see Group: utilities/System Source RPM: CollabNetSubversion-client-1.8.13-1.src.rpm * @ see Size: 39281894 License: Proprietary * @ see Signature: DSA/SHA1, Mon 23 Mar 2015 02:49:51 am edt, key ID 80233a5a35bcca43 * @ see Packager: Alexander Thomas (AT) <alexander@collab.net> * @ see URL: http://open.collab.net * @ see Summary: A Concurrent Versioning system similar to but better than CVS. * @ see Description: * @ see CollabNet Subversion client is a free download of open-source Subversion, * @ see compiled and tested by CollabNet. for more information about CollabNet * @ see Subversion, visit the CollabNet community at http://open.collab.net. * @ see repository * @ see [Jadyer @ localhost app] $ rpm-qpi jdk-6u45-linux-amd64.rpm * @ see Name: jdk Relocations:/usr/java * @ see Version: 1.6.0 _ 45 Vendor: oracle and/or its affiliates. * @ see Release: fcs Build Date: Tue 26 Mar 2013 07:54:12 pm edt * @ see Install Date: (not installed) Build Host: jb6-lin-amd64.sfbay.sun.com * @ see Group: development/Tools Source RPM: jdk-1.6.0_45-fcs.src.rpm * @ see Size: 127250396 License: Copyright (c) 2011, Oracle and/or its affiliates. all rights reserved. also under other license (s) as shown at the Description field. * @ see Signature: (none) * @ see Packager: Java Software <jre-comments@java.sun.com> * @ see URL: http://www.oracle.com/technetwork/java/javase/overview/index.html * @ see Summary: Java (TM) platform Standard Edition Development Kit * @ see Description: * @ see The Java Platform Standard Edition Development Kit (JDK) includes des both * @ see the runtime environment (Java virtual machine, the Java platform classes * @ see and supporting files) and development tools (compilers, debuggers, * @ see tool libraries and other tools ). * @ see The JDK is a development environment for building applications, applets * @ see and components that can be deployed with the Java Platform Standard * @ see Edition Runtime Environment. * @ see usages * @ see through the Relocations parameters of the two, we can see that Subversion cannot be relocated, while jdk allows * @ see. Therefore, Subversion can only be installed in the default path, jdk can change its default installation path/usr/java to another path, the method is as follows * @ see [Jadyer @ localhost app] $ rpm-ivh -- badreloc -- relocate/usr/java =/app/jdk1.6.0 _ 45 jdk-6u45-linux-amd64.rpm * @ see badreloc is to force File Installation to the specified location * @ see relocate is to install the file from oldpath to newpath * @ see repository * @ create 7:08:43 * @ author Xuan Yu 

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.