1. 程式人生 > >ubuntu下載JDK的命令

ubuntu下載JDK的命令

lin 下載 accept port .gz 接收 license .bashrc x64

這裏的參數表示接收他們的協議

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz

vim ~/.bashrc

export JAVA_HOME=/usr/lib/java/jdk1.8.0_131

export JRE_HOME=${JAVA_HOME}/jre

export PATH=${JAVA_HOME}/bin:$PATH

source ~/.bashrc

ubuntu下載JDK的命令