弄一整天了,时间宝贵,在此处记录一下,给后来的小伙伴们铺好路。 ES7.0.1中的elasticsearch.yml的配置:
path.data: /home/leyou/elasticsearch-7.0.1/data # 数据目录位置 path.logs: /home/leyou/elasticsearch-7.0.1/logs # 日志目录位置 #path.data: /var/lib/elasticsearch #path.logs: /var/log/elasticsearch http.port: 9200 cluster.name: my-application node.name: node-1 network.host: 0.0.0.0 xpack.license.self_generated.type: basic #discovery.seed_hosts: 127.0.0.1 cluster.initial_master_nodes: [“node-1”]
Kibana7.0.1中kibana.yml的配置:
elasticsearch.hosts: [“http://192.168.126.131:9200/”] server.port: 5601 server.host: “0.0.0.0” server.name: “my-application” #使用32个字符或更长的任何文本字符串作为加密密钥 xpack.security.encryptionKey: “something_at_least_32_characters” #设置多次重启和kibana的多个实例之间保留相同的密钥 xpack.reporting.encryptionKey: “something_at_least_32_characters”
|