服务器多了之后安装java挺烦躁的,下面部分是从martinseeler / oracle-server-jreDockerfilecopy的一部分 命令wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u45-b14/server-jre-8u45-linux-x64.tar.gz -O server-jre.tar.gz && \ mkdir oracle-server-jre && \ tar -xzf server-jre.tar.gz -C ./oracle-server-jre && \ mkdir -p /opt/oracle-server-jre && \ cp -r oracle-server-jre/jdk1.8.0_45/* /opt/oracle-server-jre/ && \ ln -s /opt/oracle-server-jre/bin/java /usr/bin/java && \ chmod ugo+x /usr/bin/java && \ rm -rf /var/lib/apt/lists/* \ rm -rf oracle-server-jre(责任编辑:IT) |