记录一次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 成功。

猜你喜欢

转载自blog.csdn.net/Realoyou/article/details/81097524