Linux安装jdk
1、上传jdk
JDK下载路径:
LINUX软件下载源:https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/
上传并解压到/usr/local/java
2、配置环境变量
vim /etc/profile
export JAVA_HOME=/usr/local/java/jdk1.8.0_171
export PATH=$JAVA_HOME/bin:$PATH
source /etc/profile