Rz win the upload files to Linux tools
Use rz command, such as the hint command not found, then enter yum command to download the install - y LRZSZ, re-enter the rz orders after the download is complete,
2: create a Java directory
Input the mkdir/usr/local/Java command create a directory
Input the tar - ZXVF JDK - 8 u45 - Linux - x64. Gz - C/usr/local/Java, will upload the JDK installation package decompression to Java directory
3: configure the environment variablesType vi/etc/profile command, enter the interface configuration file content
Press the I key, pop-up insert, the state of editing
In the last insert this part:
Export JAVA_HOME=/usr/local/Java/jdk1.8.0 _45
Export JRE_HOME=/usr/local/Java/jdk1.8.0 _45/jre
Export the CLASSPATH=. : $JAVA_HOME/lib/dt. The jar: $JAVA_HOME/lib/tools. The jar: $JRE_HOME/lib: $CLASSPATH
The export PATH=$JAVA_HOME/bin: $PATH
Press the esc key, then input: wq save out
The input source/etc/profile gives effect to the environment variable
4: verify whether the installation success
Enter Java - version
CodePudding user response:
CodePudding user response:
A look at is the copy of the old articles, small jdk8 version is now more than 200, 45 is the 2015-04-14 releaseCodePudding user response:
Su -c "yum install Java -- 1.8.0 comes with its" not sweet?CodePudding user response: