接上一篇:Elasticsearch7.x(阿里云Ubuntu)系统环境安装及简单配置操作系统:Ubuntu18.04LTS(阿里云)系统IP#内网,私有地址172.内.内.内#外网,公网地址112.外面。外部。Elasticsearch外部版本:7.2Kibana版本:7.2安装配置官方文档:https://www.elastic.co/guide/...下载wgethttps://artifacts.elastic.co/downloads/kibana/kibana-7.2。0-linux-x86_64.tar.gz解压tar-xzfkibana-7.2.0-linux-x86_64.tar.gz后续操作在kibana-7.2.0-linux-x86_64目录下cdkibana-7.2.0-linux-x86_64/edit./config/kibana.yml#添加或修改server.port:5601server.host:"0.0.0.0"elasticsearch.hosts:["http://172.18.in.in:9200"]i18n.locale:"zh-CN"#配置中文界面,可选修改ECS安全组,释放5601端口,启动kibana./bin/kibana浏览器访问http://112.wai.wai.wai:5601/,即可看到如下界面,可以点击上图中的“Tryoursampledata”添加测试数据进行播放添加完三种测试数据后,点击左侧的Dashboard按钮可以进一步查看添加的三种数据信息KibanaDevToolsKibanaDevTools是一款好用好用的工具Kibana插件Kibana常用插件:https://www.elastic.co/guide/...插件的安装、查看和卸载。/bin/kibana-plugininstall#安装./bin/kibana-pluginlist#查看./bin/kibana-pluginremove#卸载常用命令集群信息查看集群是否健康#查看集群健康状态GET/_cluster/healthChecknodelist#查看节点ListGET/_cat/nodes?vIndex查看所有索引#查看所有索引GET/_cat/indices查看索引的映射#查看索引的映射GET/kibana_sample_data_ecommerce/_mapping查看索引的设置#查看索引的设置一个索引settingsGET/kibana_sample_data_ecommerce/_settingsdocuments返回索引中的所有文档#返回索引中的所有文档GET/kibana_sample_data_ecommerce/_searchViewdocumentsbyID#ViewdocumentsbyIDGET/kibana_sample_data_ecommerce/_doc/xPGYeWwBVtEez7y_Ku1Utermqueryexactmatch#termqueryexactmatchGET/_search{"query":{"term":{"currency":"EUR"}}}#将query转换为FilteringbyConstantScore#避免评分,使用缓存提高性能GET/_search{"query":{"constant_score":{"filter":{"term":{"currency":"EUR"}}}}}通配符模糊查询#通配符模糊查询GET/_search{"query":{"wildcard":{"currency":"*U*"}}}#将query转换为FilteringbyConstantScore#避免评分并使用缓存来提高性能GET/_search{"query":{"constant_score":{"filter":{"wildcard":{"currency":"*U*"}}}}}本文是阮一鸣的学习笔记《Elasticsearch核心技术与实战》。
