gpt4 book ai didi

elasticsearch - 错误 Elasticsearch YML Homestead配置

转载 作者:行者123 更新时间:2023-12-03 01:47:31 26 4
gpt4 key购买 nike

我想在我的宅基地上安装配置。
但是目前我的elasticsearch配置有问题。
如果在我的elasticsearch.yml中添加network.host:192.168.10.10,我将无法运行我的elasticsearch。

如果有人有像我这样的问题?

这是我的代码段elasticsearch.yml

# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
network.host: 192.168.10.10

最佳答案

1.将端口添加到homestead.yaml
ports:
- send: 9200
to: 9200

2.安装Java
sudo apt-add-repository ppa:webupd8team/java -ysudo apt-get updatesudo apt-get install oracle-java8-installer -y
3.安装elasticsearch
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
sudo apt-get updatesudo apt-get install elasticsearch -ysudo update-rc.d elasticsearch defaults 95 10
4.然后打开任何编辑器,例如nano
sudo nano /etc/elasticsearch/elasticsearch.yml
按类型添加 network.host:192.168.10.10

my elasticsearch.yml

5.启动服务
sudo service elasticsearch start
并检查:curl http://192.168.10.10:9200

关于elasticsearch - 错误 Elasticsearch YML Homestead配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42747072/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com