Ambari框架开发环境搭建
一、jdk安装
1、检查下系统中的jdk版本:
java -version
2、检查jdk自带安装包:
rpm -qa | grep java
3、如果有自带jdk,则卸载旧的:
yum remove *openjdk*
4.下载jdk安装包
1),在线下载
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.rpm
2).离线下载
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
目前在官网下载低于jdk1.8的java jdk的时候需要登陆,这边分享一个账号,方便下载 账号:2696671285@qq.com
密码:Oracle123
账号提供者:https://blog.csdn.net/WNsshssm/article/details/84315519
5.解压安装jdk包
tar -zxvf jdk-8u151-linux-x64.tar.gz