1.安装Elasticsearch
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.5.1-linux-x86_64.tar.gz wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.5.1-linux-x86_64.tar.gz.sha512 shasum -a 512 -c elasticsearch-7.5.1-linux-x86_64.tar.gz.sha512 tar -xzf elasticsearch-7.5.1-linux-x86_64.tar.gz cd elasticsearch-7.5.1/
2.配置elasticsearch.yml
cluster.name: ap-comm-es-dev127 node.name: node127 path.data: /export/Data/elasticsearch/data path.logs: /export/Data/elasticsearch/logs network.host: 0.0.0.0 http.port: 9200 http.cors.enabled: true http.cors.allow-origin: "*" node.master: true node.data: true xpack.ml.enabled: false xpack.security.enabled: true xpack.security.transport.ssl.enabled: true xpack.security.transport.ssl.verification_mode: certificate xpack.security.transport.ssl.keystore.path: elastic-certificates.p12 xpack.security.transport.ssl.truststore.path: elastic-certificates.p12 discovery.zen.ping.unicast.hosts: ["192.168.180.127"] cluster.initial_master_nodes: ["node127"] xpack.monitoring.collection.enabled: true
3.启动Elasticsearch
bin/elasticsearch -d -p pid
4.安装Kibana
curl -O https://artifacts.elastic.co/downloads/kibana/kibana-7.5.1-linux-x86_64.tar.gz curl https://artifacts.elastic.co/downloads/kibana/kibana-7.5.1-linux-x86_64.tar.gz.sha512 | shasum -a 512 -c - tar -xzf kibana-7.5.1-linux-x86_64.tar.gz cd kibana-7.5.1-linux-x86_64/
5.配置kibana.yml
server.port: 5601 server.host: 0.0.0.0 server.name: "knode127" elasticsearch.hosts: ["http://192.168.180.127:9200"] elasticsearch.username: "kibana" elasticsearch.password: "HILyph6YVwRu17HUAhf9"
6.启动Kibana
nohup bin/kibana & 2>&1
详细配置可以参考
https://www.elastic.co/guide/en/elasticsearch/reference/7.5/install-elasticsearch.html
https://www.cnblogs.com/libin2015/p/8462567.html
7.1版本以后权限管理功能已免费提供服务,准备开始体验下