Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux complete steps to install JDK

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to install JDK in Linux environment, because Java is indispensable in Linux environment, so let's share with you the process of how to jdk1.8.

I. installation environment

Operating system: CentOS 7.5

JDK version: jdk1.8.0_181

Tools: Xshell6, Xftp6

Note: this article is through the Xshell6 tool remote connection Linux operation, if it is directly in the Linux visual interface operation that is more convenient, the principle is the same.

Second, installation steps

Step 1: download the installation package

To download jdk1.8 in Linux environment, please go to (official website) to download the installation package of jdk.

1. You can see the download page as follows:

two。 There is this item at the bottom of this page, as shown in the following figure.

The content is roughly as follows: (some Java versions of our history are available in the Java file)

3. After clicking Downloads, go to the list page of historical versions.

If Linux itself is connected to the Internet, we can download the JDK installation package directly through the wget command, as shown in the figure:

If there is no external network environment, install the above method to download the installation package and upload it to the server

Step 2: extract the installation package

[root@centos01 ~] # tar-zxvf jdk-8u131-linux-x64.tar.gz [root@centos01 ~] # mv jdk1.8.0_181/ / usr/local/jdk

Step 3: configure environment variables

Cat > > / etc/profile

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report