1

在 GCP 上安装 postgresql(13) 后,我尝试使用以下命令安装 citus:

curl https://install.citusdata.com/community/rpm.sh | sudo bash

但是我遇到了以下错误。任何指导/建议都会有所帮助。

[tony_stark@host]$ curl https://install.citusdata.com/community/rpm.sh | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8667  100  8667    0     0  21791      0 --:--:-- --:--:-- --:--:-- 21831
Detected operating system as centos/7.
Checking for curl...
Detected curl...
Checking for postgresql13-server...
Detected postgresql13-server...
Checking for EPEL repositories...
Detected EPEL repoitories
Downloading repository file: https://repos.citusdata.com/community/config_file.repo?os=centos&dist=7&source=script... 
curl: (7) Failed to connect to 
Network is unreachable
Unable to run: 
    curl https://repos.citusdata.com/community/config_file.repo?os=centos&dist=7&source=script

该链接curl https://repos.citusdata.com/community/config_file.repo?os=centos&dist=7&source=script在我的浏览器上有效。

4

1 回答 1

1

看起来像存储库方面的临时问题。我刚刚尝试过它并且它有效:

[sergiusz@host ~]$ curl https://install.citusdata.com/community/rpm.sh | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8667  100  8667    0     0  25686      0 --:--:-- --:--:-- --:--:-- 25718
Detected operating system as centos/7.
Checking for curl...
Detected curl...
Checking for postgresql13-server...
Installing pgdg13 repo... done.
Checking for EPEL repositories...
Detected EPEL repoitories
Downloading repository file: https://repos.citusdata.com/community/config_file.repo?os=centos&dist=7&source=script.
.. done.
Installing pygpgme to verify GPG signatures... done.
Installing yum-utils... done.
Generating yum cache for citusdata_community... done.
The repository is set up! You can now install packages.

编辑:
这个文件也可以手动下载:
curl "https://repos.citusdata.com/community/config_file.repo?os=centos&dist=7&source=script" -o /etc/yum.repos.d/citusdata_community.repo

于 2021-09-30T09:49:09.627 回答