1.Env
1.Install JDK
If there is a JDK environment on the Linux server, this step can be ignored, and the installation of the second section of the link. If there is no JDK, first to the Oracle official website to download JDK, Download.
2.JAVA_HOME Configure
JDK extract can according to their actual situation to want to extract the path, here we extract to unzip /usr/java/jdk1.8
, as shown below:
Then, we use the . /etc/profile
to enable the configuration to take effect immediately.
PS: If the authority is insufficient, please use the sudo command
Finally, we input java -version
, according to the following information:
Last updated