Use Xshell Ali cloud server connection and install the JDK

1, download to a local jdk

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

 

 2. xshell connect to the server.

 

Enter your username and password

 

 

Rz command with jdk uploaded to the server. Rz is not installed, then the first implementation yum install lrzsz

[root @ dwl ~] # rz
-bash: rz: command not found
[root @ dwl ~] # yum -y install lrzsz
fastestmirror, the Langpacks: Loaded plugins
Determining Fastest Mirrors
* Base: mirrors.aliyun.com
* Extras: Mirror .lzu.edu.cn
* the Updates: mirrors.neusoft.edu.cn
Base | 3.6 kB 00:00:00
Extras | 3.4 kB 00:00:00
the Updates | 3.4 kB 00:00:00
(1/4): Base / 7 / x86_64 / group_gz | 166 kB 00:00:00
(2/4): Extras / 7 / x86_64 / primary_db | 174 kB 00:00:01
(3/4): the Updates / 7 / x86_64 / primary_db | 5.0 00:00:16 MB
(4/4): Base / 7 / x86_64 / primary_db | 5.9 MB 00:00:20
is addressing dependencies
-> checking affairs
---> packages lrzsz.x86_64.0.0.12.20 -36.el7 will be installed
-> resolve dependencies complete

dependency solve

================================================== ================================================== ================
Package Penalty for architecture version of the source size
============================= ================================================== =====================================
being installed:
lrzsz x86_64 0.12.20-36.el7 Base 78 k

transaction summary
============================================== ================================================== ====================
1 package installation

total downloads: 78 k
installation size: 181 K
downloading packages:
wARNING: / var / cache / yum / x86_64 / 7 /base/packages/lrzsz-0.12.20-36.el7.x86_64.rpm: head V3 RSA / SHA256 Signature, key f4a80eb5 ID: NOKEY
lrzsz-0.12.20-36.el7.x86_64.rpm public key has not been installed
lrzsz-0.12.20-36.el7.x86_64.rpm | 78 kB 00:00:00
From file: /// etc / pki / rpm -gpg / RPM-GPG-KEY-CentOS-7 retrieval key
import GPG key 0xF4A80EB5:
User ID: "CentOS-7 Key ( CentOS 7 Official Signing Key) <security @ centos .org> "
fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
package: centos-release-7-5.1804.el7.centos.x86_64 (@anaconda )
from: / etc / pki / rpm- gpg / RPM-GPG . 7-the CentOS-the -key
Running Transaction Check
Running Transaction Test
the Transaction Test succeeded.
Running Transaction
Installing: lrzsz-0.12.20-36.el7.x86_64 1/1
verification: lrzsz-0.12.20-36.el7.x86_64 1 / 1

is installed:
lrzsz.x86_64 0: 0.12.20-36.el7

finished!
[root @ dwl ~] #


 Decompression jdk 

sudo tar -vxf jdk-8u181-linux -x64.tar.gz -C / usr / local
configuration environment variable

[DWL the root @ ~] # the sudo Vim / etc / Profile
Export the JAVA_HOME = / usr / local / jdk1.8.0_181

Export the JRE_HOME the JAVA_HOME = $ {} / JRE

exportCLASSPATH =:. $ {the JAVA_HOME} / lib: $ {} the JRE_HOME / lib

Export the PATH = $ {the JAVA_HOME} / bin: $ the PATH
 valid configuration and test

[DWL the root @ ~] # Source / etc / Profile
[DWL the root @ ~] # -version Java
Java Version "1.8.0_181"
the Java ((TM)) the Runtime Environment SE (Build 1.8.0_181-B13)
the Java the HotSpot ((TM)) 64 VM Server -bit (Build 25.181-B13, the MODE
 
Mixed) ----------------
Disclaimer: This article is the original article CSDN bloggers "Mr_daiven", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/DWL0208/article/details/81705178

Guess you like

Origin www.cnblogs.com/poison-future/p/11828873.html