Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

RHEL7 installation jdk and environment configuration tutorials

Shulou Source: shulou.com Published: 2022-06-02 08:29:44 10月03日 Update

This article mainly explains the "RHEL7 installation jdk and environment configuration tutorial", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and study the "RHEL7 installation jdk and environment configuration tutorial" bar!

1. Upload jdk to the directory and decompress:

Tar-ivh jdk-8u161-linux-x64.tar.gz

2. Open the configuration file profile for environment configuration

Vim / etc/profile

Export JAVA_HOME=/home/java/jdk1.8.0_161

Export PATH=$JAVA_HOME/bin:$PATH

Export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

3. Enter the command to restart the profile file

Source / etc/profile

4. Enter Java and javac for testing

Thank you for reading, the above is the "RHEL7 installation jdk and environment configuration tutorial" content, after the study of this article, I believe you have a deeper understanding of RHEL7 installation jdk and environment configuration tutorials, the specific use of the need for you to practice and verify. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Configuration environment tutorials learning content files inputs commands that is ideas situations articles more directories knowledge knowledge points articles follow questions practice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Information vpn Huawei MySQL