Elasticsearch-7.13.2 + Kibana-7.12.2
elasticsearch-7.13.2 + kibana-7.12.2
vi /etc/sysctl.conf
vm.max_map_count=2560000
sysctl -p
vi /etc/security/limits.conf
* soft nofile 666666
* hard nofile 999999
elastic soft memlock unlimited
elastic hard memlock unlimited
init 6
vi elasticsearch.yml
cluster.name: lk-es-cluster
node.name: node-1
path.data: /data/elasticsearch
path.logs: /data/elasticsearch/logs
bootstrap.memory_lock: false
network.host: 172.16.xx.xx
http.port: 9200
discovery.seed_hosts: ["172.16.xx.xx"]
cluster.initial_master_nodes: ["node-1"]
bin/elasticsearch -d //启动
============================================
kibana-7.13.2
vi kibana.yml
server.port: 5601
server.host: "172.16.xx.xx"
server.name: "node-1"
elasticsearch.hosts: ["http://172.16.xx.xx:9200"]
kibana.index: ".kibana"
kibana.defaultAppId: "home"
i18n.locale: "zh-CN"
bin/kibana &
http://172.16.xxx.xxx:9200
http://172.16.xxx.xxx:5601
=====================================================
Elasticsearch + kibana 设置密码
vi ../config/elasticsearch.yml
--------------------- Network ---------------------
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: Authorization
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
设置jvm机内存大小
vi ../elasticsearch/config/jvm.options
-Xms12g
-Xmx12g
su es
kill -9 elasticxxx
bin/elasticsearch -d
设置密码:
bin/elasticsearch-setup-passwords interactive
修改密码:
POST /_security/user/elastic/_password
{
"password": "123456"
}
==================================
vi kibana.yml
elasticsearch.username: "elastic"
elasticsearch.password: "pwdpwd"
su es
kill -9 kibana
bin/kibana &
http://192.168.1.1:5601