Detailed installation steps of jdk8 under CentOS 7

This article shares the detailed steps of installing jdk8 under CentOS 7 for your reference. The specific contents are as follows

1、 Download JDK

Download from the official website of Oracle, as shown in the figure

2、 Install JDK

Copy the RPM file to / usr / Java. If there is no Java folder, MKDIR / usr / Java/

Install using the NPM -ivh JDK file name, as shown in the figure

3、 Configure environment variables

Use the command VI / etc / profile to insert the red part in the figure:

Use: WQ to save and exit, and then enter source / etc / profile and Java - version. As shown in the figure, the installation is successful. It is installed in the / usr / Java directory by default

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>