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/02 Report--
This article to share with you is about ubuntu16.04 how to install ElasticSearch, Xiaobian think quite practical, so share to everyone to learn, I hope you can read this article after some harvest, not much to say, follow Xiaobian to see it.
initial configuration
Configuration time synchronization
turn off the firewall
ufw disable
Set ulimit
See https://my.oschina.net/u/914655/blog/3067520
Modify max_map_count value
On linux systems, elasticsearch uses hybrid mmapfs / niofs by default to store index files, so the operating system will mainly limit the storage space through mmap, so if the storage space is full, then it will throw an exception, we can use the following command to change the settings.
Temporary settings: sysctl -w vm.max_map_count=655360vm.max_map_count = 655360 Permanent settings: echo 'vm.max_map_count=655360' >> /etc/sysctl.confsysctl -pvm.max_map_count = 655360
installation
cd /appwget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.3.1-linux-x86_64.tar.gztar zxvf elasticsearch-7.3.1-linux-x86_64.tar.gzcd elasticsearch-7.3.1/# es cannot be run as root useradd elasticsearch cd/datamkdir elasticcd elasticmkdir datamkdir logschown -R elasticsearch.elasticsearch /app/elasticsearch-7.3.1chown -R elasticsearch.elasticsearch /data/elastic
profile
#Modify jvm parameters vim config/jvm.options-Xms12g-Xmx12g# vim config/elasticsearch.yml#Cluster name, to be the same cluster.name: jp-es#Node name in cluster, to be unique, generally self-increasing node.name: ES-node1 #Specify the tribal attribute of node, which is a larger range than cluster node.attr.rack: r1#Whether it can be called master node.master: true#Whether to store data node.data: true#datapath path.data:/data/elastic/data #logpath path. logs: /data/elastic/logs#Allow external access to network.host: 0.0.0.0# Access port http.port: 9200#discovery.seed_hosts: ["10.13.6.9"10.13.6.10,"10.13.6.1110.13.6.1210.13.6.13"]#When the cluster is started, the nodes participating in the master election cluster.initial_nodes: ["ES-node1", "ES-node2", "ES-node 3"]
Other nodes note node.name, node.master
start
su elasticsearchbin/elasticsearch -d
test
curl http://localhost:9200{ "name" : "ES-node1", "cluster_name" : "jp-es", "cluster_uuid" : "KiRH05UbTTC25NPOr2zDRQ", "version" : { "number" : "7.3.1", "build_flavor" : "default", "build_type" : "tar", "build_hash" : "4749ba6", "build_date" : "2019-08-19T20:19:25.651794Z", "build_snapshot" : false, "lucene_version" : "8.1.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search"}curl http://localhost:9200/_cluster/health{ "cluster_name":"jp-es", "status":"green", "timed_out":false, "number_of_nodes":5, "number_of_data_nodes":5, "active_primary_shards":0, "active_shards":0, "relocating_shards":0, "initializing_shards":0, "unassigned_shards":0, "delayed_unassigned_shards":0, "number_of_pending_tasks":0, "number_of_in_flight_fetch":0, "task_max_waiting_in_queue_millis":0, "active_shards_percent_as_number":100} The above is how to install ElasticSearch in ubuntu16.04. Xiaobian believes that some knowledge points may be seen or used in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.