cluster.name: clusterName
node.master: true
node.data: true
node.ingest: true
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: X-Requested-With, X-Auth-Token, Content-Type, Content-Length, Authorization
node.name: node-1
# 在一台机器上最多启动的节点数
node.max_local_storage_nodes: 1
path.data: /usr/local/elasticsearch-6.2.1/data/
path.logs: /usr/local/elasticsearch-6.2.1/logs/
#绑定的网卡IP
network.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
#action.auto_create_index: .security,.monitoring*,.watches,.triggered_watches,.watcher-history*,.ml*
xpack.security.enabled: false
02、elasticsearch.yml
最新推荐文章于 2024-04-02 10:07:52 发布
本文详细解析了Elasticsearch的配置参数,包括集群名称、节点角色设置、HTTP跨域资源共享配置、节点名称、本地存储节点数量限制、数据路径、日志路径、网络主机绑定、HTTP端口、传输TCP端口等关键信息,为读者提供了深入理解Elasticsearch配置的指南。
799

被折叠的 条评论
为什么被折叠?



