我已經在 macos Monterey 上使用 brew 安裝了 Elasticsearch
brew install elasticsearch
但我無法啟動服務
brew services start elasticsearch

brew info elasticsearch

這是日志
warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
Exception in thread "main" java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
at java.base/java.lang.System.setSecurityManager(System.java:416)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82)
uj5u.com熱心網友回復:
如果你運行:
brew info elasticsearch
你會看見:
已棄用,因為它正在切換到不兼容的許可證。
opensearch改為檢查!
因此,您應該使用opensearch,即:
一個社區驅動的開源搜索和分析套件,源自 Apache 2.0 許可的 Elasticsearch 7.10.2 和 Kibana 7.10.2。
或者,如果您想繼續使用 Elasticsearch,請使用macOS 的官方安裝方法,其中包括使用 tar.gz:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.1.2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.1.2-linux-x86_64.tar.gz.sha512
shasum -a 512 -c elasticsearch-8.1.2-linux-x86_64.tar.gz.sha512
tar -xzf elasticsearch-8.1.2-linux-x86_64.tar.gz
cd elasticsearch-8.1.2/
或者,您可以使用官方Docker 映像。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/463959.html
