In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
1: download and decompress:
Wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.2.tar.gz
2: configure config/elasticsearch.yml
Network.host: 10.99.32.16
Http.port: 9200
Path.logs: / root/elasticsearch/log
Path.data: / root/elasticsearch/data
Node.name: node-1
Cluster.name: mycluster
Discovery.zen.ping.unicast.hosts: ["10.99.32.16", "10.99.32.17", "10.99.32.18"]
Discovery.zen.minimum_master_nodes: 2
Bootstrap.memory_lock: true
3: configure config/jvm.options
4: configure some system kernel parameters:
Can not run elasticsearch as root:
You cannot use a root user to operate. You need to create a user and change the owner of the original directory to that user.
Adduser myuser
Passwd myuser
Chown-R myuser / mypath
Max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
Modify / etc/security/limits.conf
Add: elastic hard nofile 65536
Max file size [67107840] for user [elastic] is too low, increase to [unlimited]
Modify / etc/security/limits.conf
Elastic soft fsize unlimited
Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
Solution: sysctl-w vm.max_map_count=262144
5: run:
Bin/elasticsearch
Background operation: bin/elasticsearch-d-p pidFile
A pidFile file is generated to record the pid
As the system starts:
Sudo / bin/systemctl daemon-reload
Sudo / bin/systemctl enable elasticsearch.service
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.