03_Elasticsearch如何安装以及相关插件的介绍

时间:2021-02-16 17:59:16
03_Elasticsearch如何安装以及相关插件的介绍

elasticsearch -d (-d参数是为了让服务后台运行)

Elasticsearch 目录结构:

文件夹                     作用
/bin 运行ElasicSearch实例和管理插件的一些脚本 /config 配置文件路径,包含elasticsearch.yml /data 在节点上每个索引/碎片的数据文件的位置,可以有多个目录 /lib ElasicSearch 使用的库 /logs 日志的文件夹 /plugins 已经安装的插件的存放位置 zjtest7-redis:/usr/local/elasticsearch-2.3.4/plugins/head# ls
elasticsearch-head.sublime-project Gruntfile.js grunt_fileSets.js index.html LICENCE package.json plugin-descriptor.properties README.textile _site src test
zjtest7-redis:/usr/local/elasticsearch-2.3.4/plugins/head# Head 插件 head 插件是一个elasticsearch的集群管理工具 zjtest7-haproxy:/usr/local/elasticsearch-2.3.4# ./bin/plugin install mobz/elasticsearch-head
-> Installing mobz/elasticsearch-head...
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip ...
Downloading ........................................................................................................ ........................................................................................................ ........................................................................................................ ........................................................................................................ ........................................................................................................ ........................................................................................................ .........................................DONE
Verifying https://github.com/mobz/elasticsearch-head/archive/master.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
Installed head into /usr/local/elasticsearch-2.3.4/plugins/head
zjtest7-haproxy:/usr/local/elasticsearch-2.3.4# cd plugins/
zjtest7-haproxy:/usr/local/elasticsearch-2.3.4/plugins# ls
head Bigdesk插件: bigdesk是elasticsearch的集群监控工具,可以通过它来查看集群的各种状态 如:cpu,内存使用情况,索引数据,搜索情况,http连接数等 安装bigdesk: zjtest7-haproxy:/usr/local/elasticsearch-2.3.4# ./bin/plugin install hlstudio/bigdesk
-> Installing hlstudio/bigdesk...
Trying https://github.com/hlstudio/bigdesk/archive/master.zip ...
Downloading ........................................................................................................ ...................................................................................................DONE
Verifying https://github.com/hlstudio/bigdesk/archive/master.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
Installed bigdesk into /usr/local/elasticsearch-2.3.4/plugins/bigdesk
zjtest7-haproxy:/usr/local/elasticsearch-2.3.4#