Linux 部署 Elasticsearch和Kibana
官方网址 https://www.elastic.co/cn/
一、Elasticsearch
下载最新版本,地址,https://www.elastic.co/cn/downloads/elasticsearch
1 解压,免安装
tar -xvf XXX
cd XXX
2 Run bin/elasticsearch
(or bin\elasticsearch.bat
on Windows)
如此就启动服务了,上述是前台运行, Ctrl+C结束服务
后台维持运行的话, bin/elasticsearch -d
后台结束服务,jps来查看进程号,kill-9 进程号
3 Run curl http://localhost:9200/
or Invoke-RestMethod http://localhost:9200
with PowerShell
新开一个窗口,测试一下,如果正常,则会显示类似如下的响应:
{
"name" : "Tom Foster",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "2.1.0",
"build_hash" : "72cd1f1a3eee09505e036106146dc1949dc5dc87",
"build_timestamp" : "2015-11-18T22:40:03Z",
"build_snapshot" : false,
"lucene_version" : "5.3.1"
},
"tagline" : "You Know, for Search"
}
二、Kibana
下载最新版本 地址 https://www.elastic.co/cn/downloads/kibana 注意!版本号应该和ES的对应一致
1 Download and unzip Kibana
同上
2 Open config/kibana.yml in an editor
(2.1)如果是本地部署ES和Kibana的话,只需要改动一行
大约在28行 去掉注释符 elasticsearch.hosts: ["http://localhost:9200"]
(2.2)如果是在Linux部署服务器,然后想要远程放问的话,
# Kibana is served by a back end server. This setting specifies the port to use.
#server.port: 5601
# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
#server.host: "localhost"
还需要修改两个地方:
server.port: 8080 端口号根据自己机器需求修改
server.host: "0.0.0.0"
(2.3)显示界面为中文,设置最后一行
#i18n.locale: "en"
去掉注释符,en修改为zh-CN
3 Run bin/kibana
(or bin\kibana.bat
on Windows)
4 浏览器里打开 at http://localhost:5601 (本地部署)
如果是服务器部署,远程访问,http://X.X.X.X:8080 (XXXX为你服务的ip)
三、开始使用 可视化数据,分析日志等等
看官网****
推荐阅读
-
Linux 部署 Elasticsearch和Kibana
-
Linux下部署Symfoy2对app/cache和app/logs目录的权限设置,symfoy2logs_PHP教程
-
Linux下使用Jenkins+Git+Maven+码云搭建自动化部署,可远程部署jar和war
-
在UNIX 和Linux平台上如何部署IBM DB2 产品
-
linux下ElasticSearch.6.2.2集群安装与head、Kibana、X-Pack..插件的配置安装
-
Linux下部署Symfoy2对app/cache和app/logs目录的权限设置,symfoy2logs
-
Centos7安装Elasticsearch和Kibana
-
FastDFS - Linux下搭建FastDFS 文件服务器与Nginx配置(部署和运维)
-
了解下Apache Elasticsearch 和 Kibana
-
Linux下部署Symfoy2对app/cache和app/logs目录的权限设置,symfoy2logs_PHP教程