错误弹性搜索YML Homestead配置

时间:2017-03-12 11:54:44

标签: elasticsearch homestead

我想用宅基地安装配置。 但目前我的弹性搜索配置存在问题。 如果我在elasticsearch.yml中添加network.host:192.168.10.10,我就无法运行我的弹性搜索。

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

这是我的代码片段elasticsearch.yml

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

1 个答案:

答案 0 :(得分:1)

<强> 1。将端口添加到homestead.yaml

ports: - send: 9200 to: 9200

<强> 2。安装java

sudo apt-add-repository ppa:webupd8team/java -y

sudo apt-get update

sudo 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 update

sudo apt-get install elasticsearch -y

sudo 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