use*_*309 3 linux curl elasticsearch
我在 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 没有得到相同的结果?
您的 URL http://something_here.net:5005指向您的 Kibana Web 控制台。这不是您的 elasticsearch API,它将在其他地方。默认为 9200 端口。
| 归档时间: |
|
| 查看次数: |
1148 次 |
| 最近记录: |