Bo Master Original, if you want to reprint please indicate the source
First recommend a remote SSH tool mobaxterm Backup
1. Download JDK1.8 from official website
2. Upload the downloaded tar file to the Linux address,
3. CD to usr folder
Create a Java folder under USR
4. Copy the JDK compression package to the/usr/java/folder
5, to/usr/java/the JDK compressed package decompression
Unzip successfully.
6. Input Vi/etc/profile Open environment variable configuration variable
7. At the end of the file, add
Java_home=/usr/java/jdk1.8.0_11
Path= $JAVA _home/bin: $PATH
Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Java_home= "Your own JDK decompression path"
8. Press ESC and enter: WQ Exit editor
9. Operationsource /etc/profile使配置文件生效
10. Enter Java-version to check if the JDK is configured successfully
The results are shown to indicate that the JDK configuration was successful.
Linux Configuration jdk1.8