RHEL7 installation jdk and environment configuration tutorials
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!