Install using rpm
Convenient
wget
$ yum install -y wget
Note: jdk download address, it is best to go to the official website to copy the latest rpm package address, because it changes frequently.
You can find the rpm package on this page: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
image.png
The method of operation is to find the location of the rpm package, then right-click, copy the link, and then replace the link below in the command below.
$ wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otnpub/java/jdk/8u131b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
rpm -ivh jdk-8u161-linux-x64.rpm
http://blog.csdn.net/renfufei/article/details/52621034
http://blog.csdn.net/wlwlwlwl015/article/details/51210347
Configure open ports
$ firewall-cmd --zone=public--add-port=8081/tcp --permanent
Reload configuration
$ firewall-cmd --reload
Recommended Posts