美文网首页
Linux系统在线安装JDK-1.8

Linux系统在线安装JDK-1.8

作者: 不积小流_无以成江海 | 来源:发表于2019-03-29 11:26 被阅读0次

    Ubuntu

    sudo add-apt-repository ppa:webupd8team/java
    sudo apt update
    sudo apt install -y oracle-java8-installer
    sudo apt install -y oracle-java8-set-default
    java -version
    

    CentOS

    wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
    sudo yum localinstall -y jdk-8u131-linux-x64.rpm
    java -version
    

    相关文章

      网友评论

          本文标题:Linux系统在线安装JDK-1.8

          本文链接:https://www.haomeiwen.com/subject/fkxlbqtx.html