es 单节点配置文件 谁借莪1个温暖的怀抱¢ 2023-03-13 11:56 4阅读 0赞 os: centos 7.4.1708 es: 7.6.2 elasticsearch 本身就是分布式架构,**单节点es没有任何意义**,只用来测试而已。 # elasticsearch.yml # # mkdir -p /var/lib/es/7/data; mkdir -p /var/lib/es/7/log; chown -R es:es /var/lib/es; # su - es $ cd /usr/elasticsearch-7.6.2/config $ mv elasticsearch.yml elasticsearch.yml.bak $ vi elasticsearch.yml # ---------------------------------- Cluster ----------------------------------- cluster.name: my-application # ------------------------------------ Node ------------------------------------ node.name: node-1 node.attr.rack: r1 # ----------------------------------- Paths ------------------------------------ path.data: /var/lib/es/7/data path.logs: /var/lib/es/7/log # ----------------------------------- Memory ----------------------------------- bootstrap.memory_lock: true # ---------------------------------- Network ----------------------------------- network.host: 192.168.56.111 http.port: 9200 transport.tcp.port: 9300 # --------------------------------- Discovery ---------------------------------- discovery.seed_hosts: ["192.168.56.111"] cluster.initial_master_nodes: ["node-1"] # ---------------------------------- Gateway ----------------------------------- gateway.recover_after_nodes: 1 # ---------------------------------- Various ----------------------------------- action.destructive_requires_name: true 参考: https://www.elastic.co/guide/en/elasticsearch/reference/7.3/important-settings.html
还没有评论,来说两句吧...