Install JDK_Maven_Subversion for CentOS6.4minimal

Source: Internet
Author: User

Install JDK_Maven_Subversion for CentOS6.4minimal

  1. /**
  2. * @ See Tables -------------------------------------------------------------------------------------------------
  3. * @ See install JDK
  4. * @ See [root @ CentOS64 ~] # Cd/
  5. * @ See [root @ CentOS64/] # mkdirapp
  6. * @ See [root @ CentOS64 ~] # GroupaddDevelop # Add a Develop group
  7. * @ See [root @ CentOS64 ~] # Useradd-gDevelopJadyer # create a Jadyer user and assign it to the Develop group
  8. * @ See [root @ CentOS64 ~] # PasswdJadyer # set or modify the Jadyer User Password
  9. * @ See [root @ CentOS64/] # chown-zooadyer: Develop/app # change the owner of the/app directory to a Jadyer user and a Develop group.
  10. * @See[jadyer@centos64software?#tarzxvfjdk-8u40-linux-x64.tar.gz # decompress jdk
  11. * @ See [Jadyer @ CentOS64software] $ mvjdk1.8.0 _ 40 // app/jdk1.8.0 _ 40 # store the application in the/app directory
  12. * @ See [root @ CentOS64 ~] # Vi/etc/profile # configure the environment variables and save the configuration in [: x ].
  13. * @ See # SetJavaEnvironmentVariable
  14. * @ SeeJAVA_HOME =/app/jdk1.8.0 _ 40
  15. * @ SeePATH = $ PATH: $ JAVA_HOME/bin
  16. * @ SeeexportJAVA_HOMEPATH
  17. * @ See [root @ CentOS64 ~] # Echo $ PATH # view the current PATH
  18. * @ See [root @ CentOS64 ~] # Source/etc/profile # make the environment variable take effect
  19. * @ See [root @ CentOS64 ~] # Echo $ PATH # Check the PATH again
  20. * @ See [root @ CentOS64 ~] # Java-version # verify whether the verification is successful
  21. * @ See [Jadyer @ CentOS64 ~] $ Java-version # repeated verification (this takes effect only after a common user reconnects to the server)
  22. * @ See Tables -------------------------------------------------------------------------------------------------
  23. * @ See install Maven
  24. * @ See [Jadyer @ localhost ~] $ Cd/app/
  25. * @See[Jadyer@localhostapp]$tar-zxvfapache-maven-3.2.5-bin.tar.gz
  26. * @See[Jadyer@localhostapp]$rm-rfapache-maven-3.2.5-bin.tar.gz
  27. * @ See [root @ localhostJadyer] # vi/etc/profile
  28. * @ See # SetMavenEnvironmentVariable
  29. * @ SeeMAVEN_HOME =/app/apache-maven-3.2.5
  30. * @ SeePATH = $ PATH: $ MAVEN_HOME/bin
  31. * @ SeeexportMAVEN_HOMEPATH
  32. * @ See [root @ localhostJadyer] # source/etc/profile
  33. * @ See [root @ localhostJadyer] # echo $ PATH
  34. * @ See [root @ localhostJadyer] # mvn-version
  35. * @ See [Jadyer @ localhost ~] $ Mvn-version
  36. * @ See [Jadyer @ localhost ~] $ Cd/app/code/
  37. * @ See [Jadyer @ localhostcode] $ mkdirMavenRepository
  38. * @ See [Jadyer @ localhostcode] $ vi/app/apache-maven-3.2.5/conf/settings. xml
  39. * @ See <localRepository>/app/code/MavenRepository </localRepository>
  40. * @ See [Jadyer @ localhostcode] $ cp/application/apache-maven-3.2.5/conf/settings. xmlMavenRepository/
  41. * @ See Tables -------------------------------------------------------------------------------------------------
  42. * @ See install Subversion
  43. * @ Seehttps: // www.open.collab.net/files/documents/60/11125/CollabNetSubversion-client-1.8.13-1.x86_64.rpm
  44. * @ See [Jadyer @ localhost ~] $ Rpm-qSubversion
  45. * @ See [Jadyer @ localhost ~] $ Rpm-ivh/app/CollabNetSubversion-client-1.8.13-1.x86_64.rpm
  46. * @ Seewarning:/app/CollabNetSubversion-client-1.8.13-1.x86_64.rpm: HeaderV3DSA/SHA1Signature, keyID35bcca43: NOKEY
  47. * @ SeePreparing... ######################################## ### [100%]
  48. * @ See1: collabNetSubversion-cli ##################################### ###### [100%]
  49. * @ See [root @ localhostJadyer] # svn -- version
  50. * @ See [root @ localhostJadyer] # vi/etc/profile
  51. * @ See # SetSubversionEnvironmentVariable
  52. * @ SeeSVN_HOME =/opt/CollabNet_Subversion
  53. * @ SeePATH = $ PATH: $ SVN_HOME/bin
  54. * @ SeeexportSVN_HOMEPATH
  55. * @ See [root @ localhostJadyer] # source/etc/profile
  56. * @ See [root @ localhostJadyer] # svn -- version
  57. * @ See [Jadyer @ localhost ~] $ Svn -- version
  58. * @ See Tables -------------------------------------------------------------------------------------------------
  59. * @ Create2015-5-27 3:19:19 pm
  60. * @ Author Xuan Yu
  61. */
[Java] view plaincopyprint?
  1. /**
  2. * @ See Tables -------------------------------------------------------------------------------------------------
  3. * @ See the rpm installation path
  4. * @ Seerpm the package usually has a default installation path, but there is also a way to update its default installation path, except that not all RPMs allow installation to other paths
  5. * @ See the following CollabNetSubversion-client-1.8.13-1.x86_64.rpm and jdk-6u45-linux-amd64.rpm as an Example
  6. * @ See Tables -------------------------------------------------------------------------------------------------
  7. * @ See [Jadyer @ localhostapp] $ rpm-qpiCollabNetSubversion-client-1.8.13-1.x86_64.rpm
  8. * @ Seewarning: CollabNetSubversion-client-1.8.13-1.x86_64.rpm: HeaderV3DSA/SHA1Signature, keyID35bcca43: NOKEY
  9. * @ SeeName: CollabNetSubversion-clientRelocations :( notrelocatable)
  10. * @ SeeVersion: 1.8.13Vendor: CollabNet
  11. * @ SeeRelease: 1 BuildDate: Mon23Mar201502: 49: 36 AMEDT
  12. * @ SeeInstallDate :( notinstalled) BuildHost: cu128.cloud.maa.collab.net
  13. * @ SeeGroup: Utilities/SystemSourceRPM: CollabNetSubversion-client-1.8.13-1.src.rpm
  14. * @ SeeSize: 39281894 License: Proprietary
  15. * @ SeeSignature: DSA/SHA1, Mon23Mar201502: 49: 51 AMEDT, KeyID80233a5a35bcca43
  16. * @ SeePackager: Alexander erthomas (AT) <alexander@collab.net>
  17. * @ SeeURL: http://open.collab.net
  18. * @ SeeSummary: AConcurrentVersioningsystemsimilartobutbetterthanCVS.
  19. * @ SeeDescription:
  20. * @ SeeCollabNetSubversionclientisafreedownloadofopen-sourceSubversion,
  21. * @ SeecompiledandtestedbyCollabNet. FormoreinformationaboutCollabNet
  22. * @ SeeSubversion, visittheCollabNetcommunityathttp: // open.collab.net.
  23. * @ See Tables -------------------------------------------------------------------------------------------------
  24. * @ See [Jadyer @ localhostapp] $ rpm-qpijdk-6u45-linux-amd64.rpm
  25. * @ SeeName: jdkRelocations:/usr/java
  26. * @ SeeVersion: 1.6.0 _ 45 Vendor: Oracleand/oritsaffiliates.
  27. * @ SeeRelease: fcsBuildDate: Tue26Mar201307: 54: 12 PMEDT
  28. * @ SeeInstallDate :( notinstalled) BuildHost: jb6-lin-amd64.sfbay.sun.com
  29. * @ SeeGroup: Development/ToolsSourceRPM: jdk-1.6.0_45-fcs.src.rpm
  30. * @ SeeSize: 127250396 License: Copyright (c) 2011, Oracleand/oritsaffiliates. Allrightsreserved. Alsounderotherlicense (s) asshownattheDescriptionfield.
  31. * @ SeeSignature :( none)
  32. * @ SeePackager: Too oftware <jre-comments@java.sun.com>
  33. * @ SeeURL: http://www.oracle.com/technetwork/java/javase/overview/index.html
  34. * @ SeeSummary: Java (TM) PlatformStandardEditionDevelopmentKit
  35. * @ SeeDescription:
  36. * @ SeeTheJavaPlatformStandardEditionDevelopmentKit (JDK) implements desboth
  37. * @ Seetheruntimeenvironment (Javavirtualmachine, theJavaplatformclasses
  38. * @ Seeandsupportingfiles) anddevelopmenttools (compilers, debuggers,
  39. * @ Seetoollibrariesandothertools ).
  40. * @ See
  41. * @ SeeTheJDKisadevelopmentenvironmentforbuildingapplications, applets
  42. * @ SeeandcomponentsthatcanbedeployedwiththeJavaPlatformStandard
  43. * @ SeeEditionRuntimeEnvironment.
  44. * @ See Tables -------------------------------------------------------------------------------------------------
  45. * @ See the Relocations parameter of the two methods. We can see that Subversion cannot be relocated, while jdk allows
  46. * @ See. Therefore, Subversion can only be installed in the default path, while jdk can modify its default installation path/usr/java to another path. The method is as follows:
  47. * @ See [Jadyer @ localhostapp] $ rpm-ivh -- badreloc -- relocate/usr/java =/app/jdk1.6.0 _ 45jdk-6u45-linux-amd64.rpm
  48. * @ Seebadreloc is to force the file to the specified location
  49. * @ Seerelocate install the file from oldpath to newpath
  50. * @ See Tables -------------------------------------------------------------------------------------------------
  51. * @ Create2015-5-27 7:08:43 pm
  52. * @ Author Xuan Yu
  53. */

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.