Configuration is simple, Java deployment Getting started configuration,
As follows:
1, Decompression installation package
[Root@localhost software] Tar zxvf jdk-8u152-linux-x64.tar.gz
2. Edit System Environment variables
[Root@localhost Software] Vi/etc/profile
The content of the accession is as follows:
Export java_home=/home/svr/application/jdk/jdk8
export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/ Tools.jar
Export path= $JAVA _home/bin: $PATH
Note Punctuation, Java_home is the directory path that the JDK stores;
3, load the variable just set (effective immediately)
[Root@localhost Software] Source/etc/profile
4. Test whether the installation is successful
[Root@localhost Software] Java-version
java Version "1.8.0_152"
Java (TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot ( TM) 64-bit Server VM (build 25.152-b16, Mixed mode)
The JDK's version information is then displayed, and so on,
Configuration complete.