In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to configure jdk on CVM. The content is concise and easy to understand, which will definitely brighten your eyes. I hope you can gain something through the detailed introduction of this article.
Java Development Kit (JDK) is a software development kit for Java developers of Sun (acquired by Oracle). JDK has become the most widely used Java SDK since the launch of Java. Without JDK, the Java program cannot be compiled.
1. Connect to the remote server, enter Window+R-> enter mstsc enter, and enter the public network ip of the CVM
Since we need to copy the relevant files locally on the remote host, we need to share a local disk to the remote server (here I share D disk):
Click Local Resources-> details
Select the disk you want to share. Select disk D here, and click on the link after confirmation.
The user name is Administrator, and the password is the complex password that was previously set (that is, the password set when you clicked to reset the password)
Click OK to enter the remote host interface.
two。 Create a new folder on your local D disk to store files such as jdk,tomcat,MySQL
Copy out the file and install jdk: note that JAVA_HOME and CATALINA_HOME must be configured or tomcat startup will fail.
2.1 configure JAVA_HOME
Create a new environment variable in the environment variable, named JAVA_HOME, with the content of the root directory of the Java installation, such as C:Javajdk_1.7.0_13
Find the path environment variable in the environment variable and add;% JAVA_HOME%bin; at the end (note that the two semicolons are indispensable)
Verify: Windows+R enter cmd type javac to verify success
2.2 configure CATALINA_HOME
Create a new environment variable in the environment variable, named CATALINA_HOME, with the content as the tomcat root directory, for example: C:apache-tomcat-7.0.56
Find the path environment variable in the environment variable and add;% CATALINA_HOMEbin; at the end (note that the two semicolons are indispensable)
Verification: run the startup.bat file under the bin directory under the tomcat directory. If the service can be started normally, the configuration is successful.
The above content is how to configure jdk on CVM. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to 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.