官网上下载Es,kibana,皆为7.16.2版本
配置文件elasticsearch.yml
cluster.name: my-application
node.name: node-1
path.data: /usr/local/elasticsearch-7.16.2/data
path.logs: /usr/local/elasticsearch-7.16.2/logs
network.host: xx.xx.xx.xx
http.port: 9200
transport.tcp.port: 9300
discovery.seed_hosts: [" xx.xx.xx.xx"]
#cluster.initial_master_nodes: [“node-1”,“node-2”,“node-3”]
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
启动
./elasticsearch
设置密码
./elasticsearch-password-setups interactive
[apm_system]:apm_system
[kibana_system]:kibana_system
[kibana]:kibana
[logstash_system]:logstash_system
[beats_system]:beats_system
[remote_monitoring_user]:elastic
[elastic]:elastic
访问:
curl xx.xx.xx.xx:9200 -u elastic:elastic正常访问