Centos7 yum way to install java environment

Centos7 yum way to install java environment

1. View yum source

yum list java*

2. Install

yum -y install java-1.8.0-openjdk

3. Check the version and check whether the installation is successful

java -version

Guess you like

Origin blog.csdn.net/q907811175/article/details/109638784