日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

elasticsearch-7.17.4 基础班升级到白金版本

發布時間:2024/1/8 编程问答 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 elasticsearch-7.17.4 基础班升级到白金版本 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一、ES證書申請

Register | Elastichttps://license.elastic.co/registration

  • 郵箱下載授權文件是一個json格式 ,修改json文件的屬性,basic 基礎版本,platinum 白金版本,時間戳自行修改,年限自定義

  • "type":"basic" 替換為 "type":"platinum"??

  • "expiry_date_in_millis":"1765556390000"?

二、ES證書類型對比

訂閱 | Elastic Stack 產品和支持 | Elastic查看 Elastic Stack(Elasticsearch、Kibana、Beats 和 Logstash)就地部署、Elastic Cloud 和 Elastic Cloud Enterprise 的訂閱級別、定價和分級功能。https://www.elastic.co/cn/subscriptions

三、使用授權,進入到json 所在的文件目錄,執行以下命令

curl -XPOST -u elastic "http://127.0.0.1:9200/_xpack/license?acknowledge=true" -H "Content-Type: application/json" -d @xxxx.json Enter host password for user 'elastic': {"acknowledged":true,"license_status":"invalid"}

四、 修改用戶密碼

E:\elasticsearch-7.17.4-windows-x86_64\elasticsearch-7.17.4\bin>elasticsearch-setup-passwords interactive "warning: usage of JAVA_HOME is deprecated, use ES_JAVA_HOME" Future versions of Elasticsearch will require Java 11; your Java version from [C:\Program Files\Java\jdk1.8.0_181\jre] does not meet this requirement. Consider switching to a distribution of Elasticsearch with a bundled JDK. If you are already using a distribution with a bundled JDK, ensure the JAVA_HOME environment variable is not set. Initiating the setup of passwords for reserved users elastic,apm_system,kibana,kibana_system,logstash_system,beats_system,remote_monitoring_user. You will be prompted to enter passwords as the process progresses. Please confirm that you would like to continue [y/N]yEnter password for [elastic]: Reenter password for [elastic]: Enter password for [apm_system]: Reenter password for [apm_system]: Enter password for [kibana_system]: Reenter password for [kibana_system]: Enter password for [logstash_system]: Reenter password for [logstash_system]: Enter password for [beats_system]: Reenter password for [beats_system]: Enter password for [remote_monitoring_user]: Reenter password for [remote_monitoring_user]: Changed password for user [apm_system] Changed password for user [kibana_system] Changed password for user [kibana] Changed password for user [logstash_system] Changed password for user [beats_system] Changed password for user [remote_monitoring_user] Changed password for user [elastic]

五、替換jar包

聯系博主,取鉑金版jar包

六、修改spingboot的配置文件

spring:data:elasticsearch:repositories:enabled: truerest:uris: localhost:9200username: elasticpassword: xxxx

這種方式在沒有開啟安全策略以后,會一直報錯,401?ES status line [HTTP/1.1 401 Unauthorized]];

需要調整配置文件

spring:elasticsearch:password: xxxusername: elasticuris: [localhost:9200] curl -XPUT http://elastic:cfl,1997@127.0.0.1:9200/syslog/_settings -d "{\"number_of_replicas\": 0}" -H "Content-Type: application/json"

總結

以上是生活随笔為你收集整理的elasticsearch-7.17.4 基础班升级到白金版本的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。