CentOS 7搭建單機ElasticSearch

2021-10-07 16:32:19 字數 2135 閱讀 1785

[root@localhost elasticstack-rpm]

# tree

.├── beat

│ └── filebeat-7.8.0-x86_64.rpm

├── elasticsearch-7.8.0-x86_64.rpm

├── kibana-7.8.0-x86_64.rpm

├── logstash-7.8.0.rpm

專案包間無依賴關係,直接rpm -ivh ***.rpm都裝上。

禁掉防火牆:systemctl stop firewalld && systemctl disable firewalld

編輯elasticsearch配置檔案,/etc/elasticsearch/elasticsearch.yml

network.host: 192.168.124.10

discovery.seed_hosts: [

"192.168.124.10"

]cluster.initial_master_nodes: [

"localhost.localdomain"

]

然後啟動服務:

systemctl enable elasticsearch && systemctl start elasticsearch
啟動elasticsearch後,測試是否啟動成功:

[root@localhost elasticstack-rpm]

# curl 192.168.124.10:9200

, "tagline"

:"you know, for search"

}

## /etc/kibana/kibana.yml

server.host: "192.168.124.10"

elasticsearch.hosts: [""]

啟動kibana:

systemctl enable kibana && systemctl start kibana
瀏覽器訪問:配置pattern

輸入時間字段:

: // 過濾掉不需要的字段

-drop_fields

:fields:[

"agent.type"

]# 不支援正規表示式

ignore_missing

:false

然後重啟服務

max_docvalue_fields_search數量超標。

trying to retrieve too many docvalue_fields. must be less than or equal to: [100] but was [137]. this limit can be set by changing the [index.max_docvalue_fields_search] index level setting
put filebeat-7.8.0-2020.07.01-000001/_settings

}

參考:

CentOS7上搭建單機Mysql服務

2 安裝步驟 解除安裝centos中預安裝的 mysql rpm qa grep i mariadb rpm e mariadb libs 5.5.68 1.el7.x86 64 nodeps rpm qa grep i mysql rpm e mysql libs 5.1.71 1.el6.x86...

Centos7單機安裝torque

1 修改主機名稱 vi etc hosts 127.0.0.1 sce2 wget 3 在root使用者下,解壓檔案 tar zxvf torque 4.2.9.tar.gz cd torque 4.2.9 4 編譯安裝 yum install libxml2 devel openssl devel...

centos7安裝MongoDB 單機

軟體所在位置 root 236 mongodb linux x86 64 3.6.13 pwd usr local mongodb linux x86 64 3.6.13 root 236 mongodb linux x86 64 3.6.13 vi etc profile export mongo...