elasticsearch - VirtualBox 上的弹性服务器空间不足?
问题描述
我正在运行一个项目的前端部分,该项目在 VirtualBox 实例上使用弹性搜索服务器。这是我得到的错误:
[FORBIDDEN/12/index read-only / allow delete (api)];]
。
检查是否有足够的磁盘空间df -h
显示以下输出:
Filesystem Size Used Avail Use% Mounted on
udev 982M 0 982M 0% /dev
tmpfs 201M 6,3M 194M 4% /run
/dev/sda1 23G 17G 5,3G 76% /
tmpfs 1001M 1,4M 999M 1% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 1001M 0 1001M 0% /sys/fs/cgroup
D_DRIVE 379G 285G 95G 76% /media/sf_D_DRIVE
tmpfs 201M 8,0K 201M 1% /run/user/108
tmpfs 201M 36K 201M 1% /run/user/1000
我还需要为 VirtualBox 实例添加空间吗?尝试使用curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
返回curl: (7) Failed to connect to localhost port 9200: Connection refused
的 . 我不确定我是否指定了正确的位置和端口。
如何让 Elastic 服务器运行?
解决方案
推荐阅读
- php - php - 回显时不需要转义变量?
- android - 应用数据绑定适配器来包含标签
- neo4j - 使用继承存储和检索对象的推荐方法
- prolog - PROLOG 所有组合分为三个子集
- django - Celery 4 + Django 2.0 - CELERY_BROKER_TRANSPORT_OPTIONS 被忽略
- python - Python Eve:当我发送 PATCH 和 DELETE 请求时出现 TypeError
- c# - 我想限制用户在运行时通过正则表达式输入除(我的情况:“T+1”)以外的文本
- vue.js - 如何在 v-for 中定位 DOM 元素
- sql - 在表中使用同一列两次 - PowerBI
- php - 为 PDF 添加动态水印