Elasticsearch:修订间差异

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
第2行: 第2行:


== 安裝 ==
== 安裝 ==
 在[[Ubuntu]]下可以透過官方提供的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]]下可以透過官方提供的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="shell-session">
 
$ sudo apt install default-jre
<syntaxhighlight lang="bash">
$ cd /tmp
sudo apt install default-jre
$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
cd /tmp
$ echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
$ sudo apt update
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a
$ sudo apt install elasticsearch
sudo apt update
sudo apt install elasticsearch
</syntaxhighlight>
</syntaxhighlight>



2019年3月26日 (二) 16:27的版本

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

相关连结

参考文献

外部链接