Skip to content

Instantly share code, notes, and snippets.

@buonzz
Last active May 24, 2021 21:22
Show Gist options
  • Save buonzz/bbf9695cf3cc77f7cf292c20c6a897a4 to your computer and use it in GitHub Desktop.
Save buonzz/bbf9695cf3cc77f7cf292c20c6a897a4 to your computer and use it in GitHub Desktop.
update java 7 to 8 Centos
sudo yum remove java-1.7.0-openjdk
cd ~
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jre-8u91-linux-i586.rpm"
sudo yum localinstall jre-8u91-linux-i586.rpm
rm ~/jre-8u91-linux-i586.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment