Elasticsearch:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
(→安裝) |
(→安裝) |
||
第10行: | 第10行: | ||
$ sudo apt update | $ sudo apt update | ||
$ sudo apt install elasticsearch | $ sudo apt install elasticsearch | ||
</syntaxhighlight> | |||
== 設定 == | |||
先設為開機啟動服務: | |||
<syntaxhighlight lang="shell-session"> | |||
$ sudo systemctl enable elasticsearch.service | |||
</syntaxhighlight> | </syntaxhighlight> | ||
2018年4月7日 (六) 18:16的版本
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
设定
先设为开机启动服务:
$ sudo systemctl enable elasticsearch.service
参考文献
- ↑ search - How to install Elasticsearch on 16.04 LTs - Ask Ubuntu. [2018-04-08].