gpt4 book ai didi

curl - 'CURL' 不被识别为内部或外部命令?

转载 作者:行者123 更新时间:2023-12-02 23:04:25 57 4
gpt4 key购买 nike

我正在尝试使用 CURL 进行查询ElasticSearch 中的命令在windows平台。

例如:localhost:9200/playground/equipment/1?pretty
我收到一条错误消息 CURL is not recognized as an internal or external command
请帮助我理解这个问题。

最佳答案

如果你已经安装了curl ,将安装的目录添加到windows路径:

Windows Vista 和 Windows 7 用户

1 - 在桌面上,右键单击 我的电脑 并点击 房产 .
2 - 点击高级系统设置左栏中的链接。
3 - 在系统属性窗口中单击 环境变量 按钮。
4 - 选择 路径 并点击 编辑 .
5 - 追加 ;c:\curl 目录的路径 在末尾。
5 - 点击好的 .
6 - 关闭 重开 命令提示符

How to set the path and environment variables in Windows

http://www.computerhope.com/issues/ch000549.htm

关于curl - 'CURL' 不被识别为内部或外部命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23198204/

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