通过rpm包重装elasticsearch,提示“Skipping auto-configuration”,无法重新配置

通过rpm包重新安装elasticsearch,会提示安全安全特性已经配置,导致无法重新安全证书。
我们可以通过预设IS_UPGRADE变量为false解决该问题。
IS_UPGRADE=false

--------------------------- Security autoconfiguration information ------------------------------

Skipping auto-configuration because security features appear to be already configured.


NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd

sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service

You can start elasticsearch service by executing

sudo systemctl start elasticsearch.service
Created elasticsearch keystore in /etc/elasticsearch/elasticsearch.keystore

希望能帮到遇到同样问题朋友。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是在Linux系统中安装elasticsearch.rpm的步骤: 1. 下载elasticsearchrpm,可以在官方网站下载,命令如下: ``` wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.2-x86_64.rpm ``` 其中,7.10.2为elasticsearch的版本号,x86_64为系统架构。 2. 安装rpm,命令如下: ``` sudo rpm -ivh elasticsearch-7.10.2-x86_64.rpm ``` 这个命令将会安装elasticsearch及其依赖。 3. 配置elasticsearch,打开配置文件/etc/elasticsearch/elasticsearch.yml,修改其中的配置项。例如,可以修改集群名称、节点名称、监听地址等。 4. 启动elasticsearch,命令如下: ``` sudo systemctl start elasticsearch ``` 启动成功后,可以使用以下命令检查elasticsearch是否正在运行: ``` curl http://localhost:9200/ ``` 如果返回类似于以下内容,则表示elasticsearch已经成功运行: ``` { "name" : "node-1", "cluster_name" : "my_cluster", "cluster_uuid" : "m3HIOjLmQFmLjV8Mg5AaFg", "version" : { "number" : "7.10.2", "build_flavor" : "default", "build_type" : "rpm", "build_hash" : "747e1cc71def077253878a59143c1f785afa92b9", "build_date" : "2021-01-13T00:42:12.435326Z", "build_snapshot" : false, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } ``` 5. 配置elasticsearch开机启动,命令如下: ``` sudo systemctl enable elasticsearch ``` 这个命令将会使elasticsearch在系统启动时自动启动。 至此,elasticsearchrpm安装就完成了。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值