首页 > 解决方案 > 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 服务器运行?

标签: elasticsearchvirtualbox

解决方案


推荐阅读