CentOS installation java environment installation and configuration
To set up a Tomcat server environment, you must first install the java runtime environment.
Follow the steps below to complete the configuration in a few steps.
Check if it is installed
java -version
Output:
-bash: java: 未找到命令
Indicates that it is not installed.
View the java version of yum
yum list java*
installation
Choose a version to install, for example, choose to install java1.8 jdk here.
yum -y install java-1.8.0-openjdk
Check whether the installation is successful
java -version
PS: For more more content..., please check --> "Server Development"
PS: More more content..., please check --> "Server Development"
PS: More more content..., please check --> "Server Development"