「Elasticsearch」:修訂間差異
跳至導覽
跳至搜尋
第3行: | 第3行: | ||
== 安裝 == | == 安裝 == | ||
在[[Ubuntu]] 16.04下可以透過官方提供的APT Repository安裝<ref>{{Cite web |url=https://askubuntu.com/questions/848173/how-to-install-elasticsearch-on-16-04-lts |title=search - How to install Elasticsearch on 16.04 LTs - Ask Ubuntu| accessdate=2018-04-08}}</ref>,包含了[[Java]]環境與Elasticsearch: | 在[[Ubuntu]] 16.04下可以透過官方提供的APT Repository安裝<ref>{{Cite web |url=https://askubuntu.com/questions/848173/how-to-install-elasticsearch-on-16-04-lts |title=search - How to install Elasticsearch on 16.04 LTs - Ask Ubuntu| accessdate=2018-04-08}}</ref>,包含了[[Java]]環境與Elasticsearch: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="shell-session"> | ||
apt install default-jre | $ sudo apt install default-jre | ||
cd /tmp | $ cd /tmp | ||
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | $ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | ||
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch.list | echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch.list | ||
apt update | $ sudo apt update | ||
apt install elasticsearch | $ sudo apt install elasticsearch | ||
</syntaxhighlight> | </syntaxhighlight> | ||
於 2018年4月7日 (六) 18:15 的修訂
Elasticsearch是一套搜尋引擎。
安裝
在Ubuntu 16.04下可以透過官方提供的APT Repository安裝[1],包含了Java環境與Elasticsearch:
$ sudo apt install default-jre
$ cd /tmp
$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch.list
$ sudo apt update
$ sudo apt install elasticsearch
參考文獻
- ↑ search - How to install Elasticsearch on 16.04 LTs - Ask Ubuntu. [2018-04-08].