In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to install and configure elasticserach+kibnan". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to install and configure elasticserach+kibnan".
Download elasticserach https://www.elastic.co/downloads/past-releases version elasticsearch-7.2.0-linux-x86_64.tar.gz
Server version: centos 7 virtual machine 2G memory
Java version "1.8.0,211"
Decompress tar-zxvf elasticsearch-7.2.0-linux-x86_64.tar.gz
Run in the bin directory. / elastisearch
Browsers run localhost:9200
The operation is successful.
Attention: 1: 00. Cannot run under the root account or there will be permission problems.
Open public network access: elasticsearch.yml under config
There is a problem:
ERROR: [3] bootstrap checks failed
: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
Refer to the blog post https://blog.csdn.net/weixin_39800144/article/details/81162002
Switch to root user
Question [1]
Reason: the parameter max_map_count allows a process to have the maximum number in VMAs (virtual memory area). VMA is a contiguous virtual address space. When the process creates a memory image file, the address space of VMA increases. When max_map_count is reached, out of memory errors is returned.
/ / modify the following file to contain some kernel parameters
Vim / etc/sysctl.conf
/ / add the following configuration
Vm.max_map_count=655360
Save after adding, and then execute
Sysctl-p
Question [2]
Reason: the maximum number of file openings is too small. If this error occurs, switch to root user and modify limits.conf.
Vim / etc/security/limits.conf add
# End of file
Root soft nofile 65536
Root hard nofile 65536
* soft nofile 65536
* hard nofile 65536
Switch back to user restart:
ERROR: [1] bootstrap checks failed
: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
Solve
At this point, continue to edit the .config / elasticsearch.yml file and set the
# cluster.initial_master_nodes: ["node-1", "node-2"]
Change to cluster.initial_master_nodes: ["node-1"]
Successful restart of the public network connection is also successful
Install kibana
Download: https://www.elastic.co/downloads/past-releases
Try to choose the same version of Kibana as elasticserach.
Decompression
Tar-zxvf kibana-7.2.0-linux-x86_64.tar.gz
Run. / bin/kibana
Run successfully
Main: you can only run successfully when elasticserach is running, otherwise you will always be looking for startup.
Set public network startup:
Modify vim config/kibana.yml
Restart:
Access successful
At this point, I believe you have a deeper understanding of the "installation and configuration of elasticserach+kibnan". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.