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