gpt4 book ai didi

curl - 在 Windows 7 Docker 快速入门终端中运行curl 命令的问题

转载 作者:行者123 更新时间:2023-12-03 01:56:25 27 4
gpt4 key购买 nike

我正在尝试按照上述步骤设置示例 hyperledger Fabric1.0 网络的步骤 here在 Windows 7 上。作为此过程的一部分,我将按照以下步骤操作 Hyperledger Fabric Samples

由于我的操作系统是Windows7 64位,所以我使用Docker Toolbox

但我的问题是,在 Docker Quickstart Terminal

中运行以下命令时

curl -sSL https://goo.gl/iX9dek ¦ bash

我收到错误

bash: line 1: syntax error near unexpected token `newline'
bash: line 1: <HTML>

我还在步骤中发现了一条注释,例如

If you get an error running the above curl command, you may have too old a version of curl. Please visit the Prerequisites page for additional information on where to find the latest version.

我在Windows环境中设置了最新版本的curl,但在Docker Quickstart Terminal中它使用的是一些旧版本。
我尝试使用yum update curl.x86_64在虚拟机终端中更新它,但找不到yumupdate等。

在这种情况下我该如何更新curl?如果curl版本不是问题,那么我在这里做错了什么?

请建议..

提前致谢。

最佳答案

实际上,问题更有可能是您计算机上的curl版本不支持重定向。在下面的注释中instructions对于curl命令有一条注释,建议如果出现错误,update your version of curl .

请注意,将 URL 替换为原始 GH URL 也是正确的解决方案,但无论如何您可能都想更新curl。

关于curl - 在 Windows 7 Docker 快速入门终端中运行curl 命令的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45615351/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com