Curl无法解析Elasticsearch中的主机
最近我正在学习在Windows上使用 我按照上面所说的说明操作,在检查Elasticsearch是否正在运行时陷入了困境 我已经下载了最新的用于windows的二进制可执行文件(7.54.0),但是当我使用按钮Curl无法解析Elasticsearch中的主机,curl,elasticsearch,Curl,elasticsearch,最近我正在学习在Windows上使用 我按照上面所说的说明操作,在检查Elasticsearch是否正在运行时陷入了困境 我已经下载了最新的用于windows的二进制可执行文件(7.54.0),但是当我使用按钮COPY AS CURL复制以下行时: curl -XGET 'localhost:9200/?pretty' 它给出了错误: curl: (6) Could not resolve host: 'localhost 我尝试了禁用IPV6的解决方案,但问题仍然存在。在我的情况下,cur
COPY AS CURL
复制以下行时:
curl -XGET 'localhost:9200/?pretty'
它给出了错误:
curl: (6) Could not resolve host: 'localhost
我尝试了禁用IPV6的解决方案,但问题仍然存在。在我的情况下,curl不知何故无法识别
“
符号
将“
更改为”
可以解决此问题
curl -XGET "localhost:9200/?pretty"
因为你在Windows上是的,在Windows中我们应该使用
“
,而在Linux中是”
。教程没有更新Windows的命令。