1、安装Elasticsearch、kibana
Elasticsearch-5.2.2单机安装,部署步骤和各种坑及解决方法_王stone的博客-CSDN博客
2、下载 x-park 插件包
https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-5.2.2.zip
3、安装
将x-pack-5.2.2.zip上传到Elasticsearch所在服务器,
使用如下命令安装插件,注意指定x-pack的安装路径:
bin/elasticsearch-plugin install file:///home/elasticsearch/x-pack-5.2.2.zip
期间需要输入y回车确认,最后提示安装成功。
4、重启Elasticsearch服务
停止elasticsearch服务:
grep找到elasticsearch对应的进程,kill掉即可
后台启动elasticsearch服务:
bin/elasticsearch -d
访问:http://192.168.1.1:9200/ 弹出登录窗口
默认的账号密码:elastic/changeme
{ "name" : "node1", "cluster_name" : "es522", "cluster_uuid" : "MnQRBEqvQN-Qz6k84bj3Eg", "version" : { "number" : "5.2.2", "build_hash" : "f9d9b74", "build_date" : "2017-02-24T17:26:45.835Z", "build_snapshot" : false, "lucene_version" : "6.4.1" }, "tagline" : "You Know, for Search" }
5、kibana安装x-park
在Kibana
根目录运行 bin/kibana-plugin
install file:///home/elasticsearch/x-pack-5.2.2.zip进行安装。
安装过程相当久,需要极度耐心等待。。。
[yutao@localhost kibana-5.2.2-linux-x86_64]$ bin/kibana-plugin install x-pack
Found previous install attempt. Deleting...
Attempting to transfer from x-pack
Attempting to transfer from https://artifacts.elastic.co/downloads/kibana-plugins/x-pack/x-pack-5.2.2.zip
Transferring 108045644 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
#我是一直在这一步等待很久
出现这句话代码安装成功!
Plugin installation complete
6、重启 kibana
注意:ps -es|grep kibana 是找不到 kibana 的进程;
使用 fuser -n tcp 5601
kill -9
重新执行:
bin/kibana &
访问:http://192.168.1.1:5601
输入账号,密码就可以了