There is no response when installing the tar package and setting environment variables; no information such as java version is displayed;
Use the following aspects to solve:
Check if the JDK that comes with CentOS has been installed, enter: yum list installed |grep java Run to check if java is installed
- 列出 java : yum -y list java*
- yum -y install java-1.8.0-openjdk*
- java -version