小编use*_*309的帖子

在弹性搜索中卷曲命令,错误消息 404 没有意义

我在 linux 终端中键入以下命令:

curl -XGET http://something_here.net:5005

我得到: var hashRoute = '/app/kibana'; var defaultRoute = '/app/kibana';

var hash = window.location.hash;
if (hash.length) {
  window.location = hashRoute + hash;
} else {
  window.location = defaultRoute;
Run Code Online (Sandbox Code Playgroud)

然后我尝试: curl -XGET http://something_here.net:5005/_all/_mappings

我得到:{"statusCode":404,"error":"Not Found","message":"Not Found"}

我尝试在 Elastic Search 中编写相同的命令(ES 自动删除关键字并替换为 )。我确实收到了结果!

{
  "statistic-[...]": {
    "mappings": {
      "statistic": {
        "properties": {
Run Code Online (Sandbox Code Playgroud)

[...]

为什么我在 Linux 中通过 curl 没有得到相同的结果?

linux curl elasticsearch

3
推荐指数
1
解决办法
1148
查看次数

标签 统计

curl ×1

elasticsearch ×1

linux ×1