「Elasticsearch」:修訂間差異
跳至導覽
跳至搜尋
第7行: | 第7行: | ||
$ 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 | $ echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a | ||
$ sudo apt update | $ sudo apt update | ||
$ sudo apt install elasticsearch | $ sudo apt install elasticsearch |
於 2018年9月5日 (三) 02:41 的修訂
Elasticsearch是一套搜尋引擎。
安裝
在Ubuntu下可以透過官方提供的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
$ sudo apt update
$ sudo apt install elasticsearch
設定
先設為開機啟動服務:
$ sudo systemctl enable elasticsearch.service
參考文獻
- ↑ search - How to install Elasticsearch on 16.04 LTs - Ask Ubuntu. [2018-04-08].