使用curl下载可执行文件

使用curl下载可执行文件,curl,argocd,Curl,Argocd,我正在按照文档安装Argo CD,我需要安装一个Linux软件包,如下所示: 如果我通过资源管理器进行安装,我没有问题,但是使用curl我会得到以下错误(作为root用户和普通用户): 详细模式没有给我提供太多信息我认为这是在github从githubusercontent idk下载/重定向时发生的 试试这个 如果您尝试wget Resolving github.com (github.com)... 140.82.121.4 Connecting to github.com (github.

我正在按照文档安装Argo CD,我需要安装一个Linux软件包,如下所示: 如果我通过资源管理器进行安装,我没有问题,但是使用
curl
我会得到以下错误(作为root用户和普通用户):


详细模式没有给我提供太多信息

我认为这是在github从githubusercontent idk下载/重定向时发生的 试试这个

如果您尝试
wget

Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/120896210/9da49480-9e3b- 
11eb-9e9b-706ed4210355?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz- 
Credential=AKIAIWNJYAX4CSVEH53A%2F20210423%2Fus-east-1%2Fs3%2Faws4_request&X- 
Amz-Date=20210423T145336Z&X-Amz-Expires=300&X-Amz- 
Signature=dc9310ece835c05901c4a051735560c9445c7ba34008e5404516f609c5d490a9&X- 
Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=120896210&response-content- 
disposition=attachment%3B%20filename%3Dargocd-util-linux-amd64&response-content- 
type=application%2Foctet-stream [following]
--2021-04-23 16:53:36--  https://github- 
releases.githubusercontent.com/120896210/9da49480-9e3b-11eb-9e9b-706ed4210355?X- 
Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz- 
Credential=AKIAIWNJYAX4CSVEH53A%2F20210423%2Fus-east-1%2Fs3%2Faws4_request&X- 
Amz-Date=20210423T145336Z&X-Amz-Expires=300&X-Amz- 
Signature=dc9310ece835c05901c4a051735560c9445c7ba34008e5404516f609c5d490a9&X- 
Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=120896210&response-content- 
disposition=attachment%3B%20filename%3Dargocd-util-linux-amd64&response-content- 
type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github- 
releases.githubusercontent.com)... 185.199.109.154, 185.199.110.154, 
185.199.108.154, ...
Connecting to github-releases.githubusercontent.com (github- 
releases.githubusercontent.com)|185.199.109.154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 89473879 (85M) [application/octet-stream]
Saving to: ‘argocd-util-linux-amd64’
我想它是按照最后一个链接的


ref:

使用wget,我可以安装它并将它保存在
/usr/local/bin/argocd
中,但当我调用它时,它不会检测到它,即使它在
路径中,我也不知道它。。我试过了,效果很好,如果不试着下载它并放入路径,确保
chmod+x argocd
curl -LJO https://github.com/argoproj/argo-cd/releases/download/v2.0.1/argocd-util-linux-amd64

-L --location
-J --remote-header-name
-O --remote-name
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/120896210/9da49480-9e3b- 
11eb-9e9b-706ed4210355?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz- 
Credential=AKIAIWNJYAX4CSVEH53A%2F20210423%2Fus-east-1%2Fs3%2Faws4_request&X- 
Amz-Date=20210423T145336Z&X-Amz-Expires=300&X-Amz- 
Signature=dc9310ece835c05901c4a051735560c9445c7ba34008e5404516f609c5d490a9&X- 
Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=120896210&response-content- 
disposition=attachment%3B%20filename%3Dargocd-util-linux-amd64&response-content- 
type=application%2Foctet-stream [following]
--2021-04-23 16:53:36--  https://github- 
releases.githubusercontent.com/120896210/9da49480-9e3b-11eb-9e9b-706ed4210355?X- 
Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz- 
Credential=AKIAIWNJYAX4CSVEH53A%2F20210423%2Fus-east-1%2Fs3%2Faws4_request&X- 
Amz-Date=20210423T145336Z&X-Amz-Expires=300&X-Amz- 
Signature=dc9310ece835c05901c4a051735560c9445c7ba34008e5404516f609c5d490a9&X- 
Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=120896210&response-content- 
disposition=attachment%3B%20filename%3Dargocd-util-linux-amd64&response-content- 
type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github- 
releases.githubusercontent.com)... 185.199.109.154, 185.199.110.154, 
185.199.108.154, ...
Connecting to github-releases.githubusercontent.com (github- 
releases.githubusercontent.com)|185.199.109.154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 89473879 (85M) [application/octet-stream]
Saving to: ‘argocd-util-linux-amd64’