在 Ubuntu(15.04)上安装 ElasticSearch

注册仓库

$ wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
$ echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list

安装

$ sudo apt-get update && sudo apt-get install elasticsearch

开动

$ sudo /etc/init.d/elasticsearch start

安装各种插件。

$ sudo /usr/share/elasticsearch/bin/plugin install mobz/elasticsearch-head
$ sudo /usr/share/elasticsearch/bin/plugin install royrusso/elasticsearch-HQ

请在浏览器中确认

http://本地主机:9200/_插件/头部/
http://本地主机:9200/_插件/总部/

广告
将在 10 秒后关闭
bannerAds