Install Java under Cloud Linux

Source: Internet
Author: User

Install Java on a machine to the cloud as needed

The decomposition of the problem to 2 one is the transmission of the Java source file. One is the installation of Java under Linux.

Java Transport to the cloud:

Java source files can be transferred to the cloud portal via the SSH Secure file Transfer client tool.

Then log in to the cloud portal to use Xshell

LS can see the file just passed in.

Then pass the file to the cloud via SFTP

>sftp [email protected] address (10.170... )

>password

SFTP >put *.gz.

>ssh [email protected] address (192.168 ...)

>password

The file is already placed under the root directory

This time the cloud-allocated VMs already have Java files.

Then Linux under Java installation >mv/root/java.tar.gz./usr/local

>tar XZVF java.tar.gz

>sudo Vi/etc/profile

Export Java_home=/home/local/jdk1.7.0_80 "
echo "Export path= $JAVA _home/bin: $PATH"

echo "Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar",

If identification is OK

Install Java under Cloud Linux

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.