博客
关于我
centos--jdk安装
阅读量:579 次
发布时间:2019-03-11

本文共 384 字,大约阅读时间需要 1 分钟。

文章目录

jdk

  • 创建文件夹
mkdir packagecd package
  • 下载配置
# 下载wget http://xxx/files/jdk-8u112-linux-x64.gz# 解压tar -zxvf jdk-8u112-linux-x64.gz # 查看文件总数cd jdk1.8.0_112 llll总用量 25920
  • 系统环境变量
vi /etc/profile# 在末尾添加export JAVA_HOME=/package/jdk1.8.0_112export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar# 使用source命令使配置生效source /etc/profile# 测试java -version

转载地址:http://mxztz.baihongyu.com/

你可能感兴趣的文章
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>