部署一個單節點的ElasticSearch集羣java
java環境node
$java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
下載、解壓bootstrap
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.1.tar.gz tar -zxvf elasticsearch-6.1.1.tar.gz mv elasticsearch-6.1.1 /usr/local/
config/elasticsearch.ymlbash
cluster.name: my_cluster node.name: master path.data: /usr/local/elasticsearch-6.1.1/data path.logs: /usr/local/elasticsearch-6.1.1/logs network.host: 0.0.0.0 http.port: 9200
參數含義app
/usr/local/elasticsearch-6.1.1/bin/elasticsearch
1. system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own riskelasticsearch
緣由:這是在由於Centos6不支持SecComp,而ES5.2.0默認bootstrap.system_call_filter爲true進行檢測,因此致使檢測失敗,失敗後直接致使ES不能啓動j解決:在elasticsearch.yml中配置bootstrap.system_call_filter爲false,注意要在Memory下面:ui
bootstrap.memory_lock: false bootstrap.system_call_filter: false
1.集羣的基本信息:http://ip:9200/spa
{ name: "master", cluster_name: "jihite-application", cluster_uuid: "aT8N1FljTqK5QZrxUDaVuw", version: { number: "6.1.1", build_hash: "bd92e7f", build_date: "2017-12-17T20:23:25.338Z", build_snapshot: false, lucene_version: "7.1.0", minimum_wire_compatibility_version: "5.6.0", minimum_index_compatibility_version: "5.0.0" }, tagline: "You Know, for Search" }
2.健康信息:http://ip:9200/_cat/health?v日誌
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1552701815 10:03:35 jihite-application green 1 1 0 0 0 0 0 0 - 100.0%
=^.^= /_cat/allocation /_cat/shards /_cat/shards/{index} /_cat/master /_cat/nodes /_cat/tasks /_cat/indices /_cat/indices/{index} /_cat/segments /_cat/segments/{index} /_cat/count /_cat/count/{index} /_cat/recovery /_cat/recovery/{index} /_cat/health /_cat/pending_tasks /_cat/aliases /_cat/aliases/{alias} /_cat/thread_pool /_cat/thread_pool/{thread_pools} /_cat/plugins /_cat/fielddata /_cat/fielddata/{fields} /_cat/nodeattrs /_cat/repositories /_cat/snapshots/{repository} /_cat/templates