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/02 Report--
This article is about how to build a java environment on a CVM. The editor finds it very practical, so I share it with you. I hope you can learn something after reading this article. Let's take a look at it with the editor.
Java is an object-oriented programming language, which not only absorbs the advantages of C++ language, but also abandons the concepts of multi-inheritance and pointers which are difficult to understand in C++. Therefore, Java language has the characteristics of powerful and easy to use. Java is a commonly used language environment in CVM. Let's describe how to build java on CVM.
1. Download jdk or jre on the Internet first (just use this on the server)
two。 Then extract the file downloaded by tar and put it under / usr/local/java/jdk_xxx
-v: visually show the progress. Enables verbose mode, showing the progress of the command-x: decompress. Extract-z: use gzip. Uses gzip, omit this if you just have a. Tar-f: specifies the file. Specifies file input, rather than STDIN-C: specify the decompression directory
3. Edit ~ / .bash_profile
Bash _ profile for bash user-level. Profile Bourne user-level / etc/profile system-level. Have the function of initialization
4. Content
Export JAVA_HOME=/usr/local/java/jdk1.8.0_202 export PATH=$JAVA_HOME/bin:$PATH
5.source ~ / .bash_profile is finished after the editor takes effect.
The above is how to build a java environment on the CVM. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.