Ambari2.7.0离线部署

一、下载安装包

wget http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/ambari-2.7.0.0-centos7.tar.gz

wget http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7/HDP-UTILS-1.1.0.22-centos7.tar.gz

wget http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.0.0.0/HDP-3.0.0.0-centos7-rpm.tar.gz

wget http://public-repo-1.hortonworks.com/HDP-GPL/centos7-ppc/3.x/updates/3.0.0.0/HDP-GPL-3.0.0.0-centos7-ppc-gpl.tar.gz
 

三、修改yum源,实现离线安装

1、安装httpd服务(主服务器)

       [root@master ~]# yum -y install httpd
       [root@master ~]# service httpd restart
       Redirecting to /bin/systemctl restart httpd.service [root@master ~]# chkconfig httpd on

2、将上面下载的四个包放到/var/www/html目录下(主服务器)

3、制作本地源

(1)安装本地源制作相关工具(主服务器)

       [root@master ambari]# yum install yum-utils createrepo yum-plugin-priorities -y
       [root@master ambari]# createrepo ./

(2)修改文件里面的源地址(主服务器)

              修改完了执行下面命令:

      [root@master ambari]# yum clean all
      [root@master ambari]# yum makecache
      [root@master ambari]# yum repolist

(3)将创建好的文件拷贝到子节点(主服务器)        


 

       [root@master ambari]# scp /to/repo/path/xxxx.repo slavexx:/etc/yum.repos.d/
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值