「Elasticsearch」:修訂間差異
跳至導覽
跳至搜尋
(未顯示同一使用者於中間所作的 4 次修訂) | |||
第3行: | 第3行: | ||
== 安裝 == | == 安裝 == | ||
在[[Ubuntu]]下可以透過官方提供的APT Repository安裝<ref>{{Cite web |url=https:// | 在[[Ubuntu]]下可以透過官方提供的APT Repository安裝<ref>{{Cite web |url=https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html |title=Install Elasticsearch with Debian Package |accessdate=2020-08-05 |language=en}}</ref>,包含了[[Java]]環境與Elasticsearch: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo apt install default-jre | sudo apt -y install default-jre; wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -; echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list; sudo apt update; sudo apt -y install elasticsearch | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== 設定 == | == 設定 == | ||
先設為開機啟動服務: | 先設為開機啟動服務: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="bash"> | ||
sudo systemctl enable elasticsearch.service | |||
</syntaxhighlight> | </syntaxhighlight> | ||
於 2020年8月5日 (三) 14:12 的最新修訂
Elasticsearch是一套搜尋引擎。
安裝
在Ubuntu下可以透過官方提供的APT Repository安裝[1],包含了Java環境與Elasticsearch:
sudo apt -y install default-jre; wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -; echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list; sudo apt update; sudo apt -y install elasticsearch
設定
先設為開機啟動服務:
sudo systemctl enable elasticsearch.service
相關連結
參考文獻
- ↑ Install Elasticsearch with Debian Package. [2020-08-05] (English).