如何在CentOS,RedHat上安装java

https://developers.redhat.com/blog/2018/12/10/install-java-rhel8/
sudo yum install java-11-openjdk-devel
sudo yum install java-1.8.0-openjdk-devel