标签:roo java wget cep 创建 bin local bsp backup
==安装jdk1.8==
[root@ycj ~]# mkdir -p /usr/local/src/jdk
//创建目录
[root@ycj jdk]# cd /usr/local/src/jdk
[root@ycj jdk]# 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
//获取源码包,--no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"是为了避开用户验证
[root@ycj jdk]# tar -zxvf jdk-8u131-linux-x64.tar.gz
//解压
[root@ycj jdk]# mv jdk1.8.0_131 jdk1.8 //改名
[root@ycj jdk]# vi /etc/profile //编辑环境变量
export JAVA_HOME=/usr/local/src/jdk/jdk1.8
export PATH=$PATH:$JAVA_HOME/bin
[root@ycj jdk]# source /etc/profile //刷新
[root@ycj jdk]# javac //验证
标签:roo java wget cep 创建 bin local bsp backup
原文地址:https://www.cnblogs.com/xiexun/p/12376576.html