In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to build a java environment on the server". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to build a java environment on a server.
1. The first thing to check is whether the server is configured with jdk.
Enter: java-version under the instruction line. If configured with jdk, it will output the version information of jdk. This website is also called jdk1.6 according to jdk6,jdk6.
If you have configured more than the version of jdk6, you do not have to configure jdk, you can directly cross 2 steps.
Such as setting up a java environment on the server
two。 Check the operating system configured by the server and configure jdk
A) if it is a linux operating system, you can use the instruction uname-a to check. If there is x86x64, it is 64-bit, and if not, it is 32-bit.
B) if it is the window operating system, right-click "my computer"-"Properties", if you see x64 or 64-bit information is 64-bit, otherwise it is 32-bit determined operating system environment, you can go to http://www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html to download the corresponding jdk version of the operating system, and now jdk has 7 versions, recommend the use of jdk6. By the way, there is a linux 32-bit jdk6 (jdk-6u43-linux-i586.bin)
C) here is the configuration of jdk on linux:
Create a configuration directory, set up a configuration path under / usr/java, and apply the files to that path:
# mkdir / usr/java
# chmod 755 jdk-6u43-linux-i586.bin
#. / jdk-6u43-linux-i586.bin (note that this step must be in the jdk-6u43-linux-i586.bin location directory)
After being prompted to enter yes, the jdk is decompressed.
A line appears: Do youaggree to the above license terms? [yes or no] the configuration program is asking if you are willing to abide by the agreement you just saw. Of course, enter "y" or "yes" to enter.
For details, please participate:
Http://www.cnblogs.com/yongtan/archive/2011/09/28/2194599.html
3. Configure the java environment
# vi / etc/profile
Add the following to it. Note that the path is the way to configure jdk.
Export JAVA_HOME=/usr/java/jdk1.6.0_43
Export JAVA_BIN=/usr/java/jdk1.6.0_27/bin
Export PATH=$PATH:$JAVA_HOME/bin
Export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Export JAVA_HOME JAVA_BIN PATH CLASSPATH
To make the / etc/profile file effective immediately after revision, you can use the following instructions: #. / etc/profile attention:. There are spaces with / etc/profile.
Restart the quiz and enter java-version to check whether the configuration is successful.
At this point, I believe you have a deeper understanding of "how to build a java environment on the server". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
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.