0

我正在尝试在我的 linux 机器上安装 td-agent,但出现以下错误。

命令:

curl -L https://td-toolbelt.herokuapp.com/sh/install-redhat-td-agent2.sh | sh

输出:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
110   662  110   662    0     0   1870      0 --:--:-- --:--:-- --:--:--  2916
This script requires superuser access to install rpm packages.
You will be prompted for your password by sudo.
curl: (28) connect() timed out!
error: https://packages.treasuredata.com/GPG-KEY-td-agent: import read failed(2).
Loaded plugins: security
packages.treasuredata.com/2/redhat/6Server/x86_64/repodata/repomd.xml: (28, 'connect() timed out!')

有没有其他方法可以安装?

4

1 回答 1

0

你有连接问题。您的 IP 可能被禁止。您是否尝试过从另一台机器运行相同的命令?

根据卷曲错误代码:

CURLE_OPERATION_TIMEDOUT (28)

Operation timeout. The specified time-out period was reached according to the conditions.

您可以创建一个本地文件,然后粘贴您可以在此处找到的相同代码

https://td-toolbelt.herokuapp.com/sh/install-redhat-td-agent2.sh

然后

chmod +x youscript.sh

并执行它。

于 2015-05-19T11:45:04.557 回答