一、es安装
1.1、配置
config/elasticsearch.yml
# 打开节点名称
node.name: chb2
# 这里的node-1为node-name配置的值
cluster.initial_master_nodes:["chb2"]
# 外部ip访问elasticsearch
network.host: 0.0.0.0
1.2、Ps:常见报错
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] elasticsearch用户拥有的内存权限太小,至少需要262144;
//需要切换到root用户
sysctl -w vm.max_map_count=262144
//查看结果
sysctl -a|grep vm.max_map_count
//显示
vm.max_map_count = 262144
//修改之后,如果重启虚拟机将失效!!!
//解决办法:
//在 /etc/sysctl.conf文件最后添加一行
vm.max_map_count=262144
[2]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured 修改ES配置文件:config/elasticsearch.yml
//解开注释
cluster.initial_master_nodes: ["node-1", "node-2"]
二、kibana安装
vim kibana.yml
server.port: 5601
server.host: "0.0.0.0"
elasticsearch.hosts: ["http://192.168.200.110:9200"]
2.2、问题
2.2.1、Error: Could not close browser client handle!
在kibana的config中的kibana.yml中配置
elasticsearch.hosts: [“http://192.168.147.52:9200”]
xpack.reporting.capture.browser.chromium.disableSandbox: true
xpack.reporting.capture.browser.chromium.proxy.enabled: false
xpack.reporting.enabled: false
详细请参考: https://www.elastic.co/guide/en/kibana/current/settings.html kibana官方配置 https://www.cnblogs.com/sanduzxcvbnm/p/12677691.html https://www.ucloud.cn/yun/34216.html
三、ik分词器
四、同义词
五、拼音
|