JDK installation
The system installation will not be introduced too much. You can find the installation steps from the Internet to install, but I recommend that you choose the desktop graphical format for installation when installing, which is convenient for some operations. At the same time, I choose the English mode during the installation process. During the installation process, it was found that using Oracle VM VirtualBox, a virtual machine tool, is more convenient than using VM tool development.
use tools
System: CentOS7_64 bit (recommended to use the minimum configuration command window)
Jdk:jdk1.8.0_191
Virtual machine: Oracle VM VirtualBox
Documentation tool: EditPlus
File transfer tool: FileZilla
Tools for connecting to Linux system: Xshell5 (recommended, but used with caution, fee-based software)
Sunflower remote connection operation tool
file path
Link: https://pan.baidu.com/s/1qu71DDVXvU3kBEg-cgBpKw
Extraction code: hn1u
1 ) Query all java (using the minimal configuration command line, you can install it directly without querying java)
rpm -qa | grep java
2 ) Delete java other than three
rpm -e --nodeps java-1.7.0-openjdk-1.7.0.111-2.6.7.8.el7.x86_64
rpm -e --nodeps java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64
rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.102-4.b14.el7.x86_64
rpm -e --nodeps java-1.7.0-openjdk-headless-1.7.0.111-2.6.7.8.el7.x86_64
3 ) After deleting, use the command to query
rpm -qa | grep java
tar -zxvf jdk-8u191-linux-x64.tar.gz -C ../
turn on/etc/profile
Add the following code at the end
# java environment
export JAVA_HOME=/develop/jdk1.8.0_191
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
source /etc/profile
java -version
javac
to sum up
The above is the detailed explanation of the Linux system (CentOS7 installation) installation tutorial introduced by the editor to you. I hope it will be helpful to you. If you have any questions, please leave me a message. The editor will reply to you in time. Thank you very much for your support to the ZaLou.Cn website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!
Recommended Posts