记录一次Yum下载InfluxDB Error: Cannot retrieve repository metadata (repomd.xml) for repository: xxxxx

  • 可以直接rpm安装
    http://repos.influxdata.com下载相应的版本

    #wget https://repos.influxdata.com/rhel/6Server/x86_64/stable/influxdb-1.2.0.x86_64.rpm
    #rpm -ivh influxdb-1.2.0.x86_64.rpm
    
  • 作者使用此种方式下载时会报错:

    OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
    Unable to establish SSL connection.
    

    因此采用直接在Windows上下载RPM包后上传的方式。

  • 可是在安装RPM包时又有一下问题:

    Error: Cannot retrieve repository metadata (repomd.xml) for repository: influxdb. Please verify its path and try again
    
  • 最后采用添加yum 源安装方式:

    cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
    [influxdb]
    name = InfluxDB Repository - RHEL \$releasever
    baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
    enabled = 0  
    gpgcheck = 1
    gpgkey = https://repos.influxdata.com/influxdb.key
    EOF
    注意:enabled = 0 在官方给出的是enabled = 1 ,但是在安装时会报错,找了很多方法,最后把这个值该成0后安装成功
    

    最后安装:
    yum install influxdb-1.4.2.x86_64.rpm 成功。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值