In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install JDK in Linux, Xiaobian feels quite practical, so share it with you as a reference, I hope you can gain something after reading this article.
JDK installation
The installation format here is bin, executable file form, rpm and source code form (installed after compilation).
Pay attention to version control, be sure to match. Installation form: rpm, source code form.
After compiling the file, upload the executable file.
Putty terminal garbled code solution:
Enter echo $LANG $LANGUAGE #in the putty terminal command or Linux shell to view the character set used in Linux.
In the Putty Character Set option, select the character set corresponding to the server and click the Apply button;
Route:
Note: Our pub path here is different from the one in the video.
Specific operation process:
1、cd /srv/ftp/pub
2、 ls
3. Execute file: copy file name--right-click--execute
In the video:
Note: The prompt message is that the command cannot be found, and the directory is written directly.
The local ones are as follows:
Note: The command cannot be found because the command is not in the place where the pass environment variable is specified. You can write this instruction to the pass environment variable, but that's a bit cumbersome. You can write dead directories and let it find directories.
In the video:
Note: permission deny is not enough here, so it needs to be modified. After modification, it turns green, indicating that it can be executed.
All the way to determine--unpacking--checksumming--inflating--Done
Note: The actual process is to extract the rpm from the bin file and then install it by rpm.
--java/j Verify that it is installed
Note:java-version
We need to make sure Java is installed.
/version, there may be multiple java in a system, the system may have downloaded a java, so we are not necessarily executing the version installed by ourselves, it may be the one originally installed in the system. Java's path variable has to be reset, so you have to set it yourself. Jdk is not installed in the pub directory (windows default is programfiles), linux installation path of each software is different, need to think memory.
Note: we installed javac java at/usr/bin/on the local computer, which is different from the one in the video.
View the installation jdk path: In actual use, enter which javac command to return
Check classpath
Note: If the error cannot find the class class, it proves that the classpath setting is incorrect.
About "how to install JDK in linux" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.
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.