Spark builds Linux commands for the environment (easy-to-use (don't spray))

Source: Internet
Author: User

Responsible for content from one server to another server: SCP jdk-6u37-linux-x64.bin [Email protected]:/home/spark/opt

Tar compression and decompression files: compression TAR-CVF java.tar.gz java/decompression: TAR-XVF java.tar.gz

To configure a Java environment variable:

Go to various places download the JDK package: jdk-6u37-linux-x64.bin, modify File Execution permissions: chmod a+x jdk-6u37-linux-x64.bin, install:./jdk-6u37-linux-x64.bin

Edit vi ~/.bash_profile, add content

# set Java env
Export java_home=/home/spark/opt/java/jdk1.6.0_37


Export classpath=.: $JAVA _home/jre/lib: $JAVA _home/lib: $JAVA _home/lib/tools.jar

Path= $PATH: $HOME/bin: $JAVA _home/bin

Export PATH

Save and source ~/.bash_profile



Spark builds Linux commands for the environment (easy-to-use (don't spray))

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.