gpt4 book ai didi

elasticsearch - Elasticsearch无法在Ubuntu 20.04中启动服务

转载 作者:行者123 更新时间:2023-12-02 22:53:35 24 4
gpt4 key购买 nike

(我是 flex 搜索的新手)
我想将 flex 搜索作为服务启动(sudo systemctl start elasticsearch),但是它无法启动,并引发如下图所示的错误
enter image description here
所以在那之后,我通过/var/log/elasticsearch/my-application.log进入了 flex 搜索日志的日志文件,那里发现了一些超出我的范围的问题,下面为错误日志附加的文件是
https://filebin.net/ca3a5l67t2hqcexd
到目前为止我尝试过的那段代码

sudo apt-cache search openjdk
sudo apt-get install openjdk-11-jre openjdk-11-jdk
java -version (openjdk 14.0.1 2020-04-14 OpenJDK Runtime Environment (build 14.0.1+7-Ubuntu-1ubuntu1) OpenJDK 64-Bit Server VM (build 14.0.1+7-Ubuntu-1ubuntu1, mixed mode, sharing))
sudo gedit /etc/environment
JAVA_HOME="/usr/lib/jvm/java-14-openjdk-amd64"
echo $JAVA_HOME (/usr/lib/jvm/java-14-openjdk-amd64)
curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - (OK)
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list - (deb https://artifacts.elastic.co/packages/7.x/apt stable main)
sudo apt-get update && sudo apt-get install elasticsearch
sudo gedit /etc/elasticsearch/elasticsearch.yml
overwritted in yml file of elasticsearch
(cluster.name: my-application
node.name: magentocom
network.publish.host: localhost
discovery.seed_hosts: []
network.host: 127.0.0.1
http.port: 9200
cluster.initial_master_nodes: 127.0.0.1)
sudo systemctl start elasticsearch
根据建议的答案,我也给予了许可,但仍然没有成功:
https://stackoverflow.com/a/38539220/9427866
任何帮助将不胜感激!

最佳答案

只需尝试用network.publish.host替换network.publish_host

关于elasticsearch - Elasticsearch无法在Ubuntu 20.04中启动服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63422299/

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