Cloud Server Environment Construction (3) - Install JDK

Cloud server JAVA operating environment construction (3) - install JDK

 

Installing the JDK is relatively simple, simply run the following command:

 

yum search jdk
yum -y install  java-1.8.0-openjdk*

 

The prompt Complete indicates that the installation is complete. For the sake of insurance, you can use the java -version command to check whether the installation is really complete.

java -version

 As shown in the figure below, a prompt similar to the following appears, indicating that the installation is successful


 

 

yum search jdk You can see that there are versions 1.6, 1.7, and 1.8. It is recommended to install jdk version 1.8, because if the jar package referenced in the project is compiled with jdk version 1.8, it may not be available.

 
 

related articles

1.  Cloud server environment construction (1) - use putty or SecureCRT to connect to the server 

2.  Cloud server environment construction (2) - Replace the yum source in the server 

3. Cloud server environment construction (3) - Install JDK  

4.  Cloud server environment construction (4) - install MySQL and related configuration 

5.  Cloud server environment construction (5) - install Tomcat and related configuration 

6.  Cloud server environment construction (6) - install Nginx and related configuration

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326883979&siteId=291194637