In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
If you download jdk directly and then install it, you generally know your installation location, but you may forget the event for a long time, or this article will be a little helpful for jdk installed using the yum command directly.
Environment: centos 7
1:echo $JAVA_HOME
If you use $JAVA_HOME, you can locate the installation path of JDK only if the environment variable $JAVA_HOME is configured, otherwise, as shown below, you cannot locate the installation path of JDK at all.
[root@localhost ~] # java-versionjava version "1.7.0y65" OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode) [root@localhost ~] # echo $JAVA_HOME
2:which java
First of all, let's make it clear that which java cannot locate the installation path. Which java locates to the execution path of the java program. So how do you navigate to the installation path of java? Let's take a look at the example, as shown below:
[root@localhost] # java-versionjava version "1.7.0mm 51" OpenJDK Runtime Environment (rhel-2.4.5.5.el7-x86_64 u51-b31) OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode) [root@localhost] # which java/usr/bin/java [root@localhost] # ls-lrt / usr/bin/javalrwxrwxrwx. 1 root root 22 September 6 22:51 / usr/bin/java-> / etc/alternatives/java [root@localhost ~] # ls-lrt / etc/alternatives/javalrwxrwxrwx. 1 root root 72 September 6 22:51 / etc/alternatives/java-> / usr/lib/jvm/java-1.7.0-openjdk-1.7.0.51-2.4.5.5.el7.x86_64/jre/bin/java
Finally, share a wave of java resources, including a full set of videos from entry to development of java, as well as 26 projects of java. The resources are relatively large, the size is about 290g, and the link is easy to fail. The way to get it is to follow the official account: non-subject class, and then reply: java project can be obtained, I wish you all a happy study.
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: 244
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.