Linux installation jdk (super simple)


opening

There are many ways to install jdk in the Linux environment, here is a relatively simple way: rpm installation.


1. Download the installation package

Download the rpm installation package of the Linux environment jdk8 from the oracle official website
提示:这里的蓝色字体是超链接,可直接点击跳转至jdk下载页面。

jdk download interface

Two, upload

Upload the rpm package to the specified path

3. Installation

To install the rpm package, execute the following command:

rpm -ivh jdk-8u231-linux-x64.rpm

Install the rpm package of jdk

说明:命令中的jdk-8u231-linux-x64.rpm 是你要安装的rpm包的文件名
rpm syntax (options) (parameters)
-i: Display the relevant information of the package
-v: Display the command execution process
-h: List the flags when the package is installed
Here only the options used by the current command are introduced, others can be learned by Baidu.

Fourth, verify whether the installation is successful

View the version number command:

java -version

The output version number means that the installation is successful.
View jdk version number
At this point, the installation is complete, which is super simple.


提示:原创文章,转载请注明出处。

Guess you like

Origin blog.csdn.net/qq_45337268/article/details/126610624