Get the App
SLTechnology News&Howtos  ›  Servers  › 

JDK configuration in Linux under centOS

Shulou Source: shulou.com Published: 2022-06-02 18:24:33 09月22日 Update

Download jdk and decompress it under / usr/local/src/jdk

Command:

After decompression:

Second, edit with vim. If it is a minimum installed Linux, you need to install the vim command (yum install vim*).

Command: vim / etc/profile

Refresh the configuration file

Command: source / etc/profile

4. Test whether jdk is configured successfully

Command: java-version

Command: javac

5. Installation completed

Tags: Commands configuration minimum success File Test Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker MySQL Huawei OPPO Reno Microsoft