# config/elasticsearch.yml

node.name: t17
path.data: ./data
path.logs: ./logs
network.host: 192.168.126.17

http.cors.enabled: true
http.cors.allow-origin: "*"

执行程序,最好加上点环境变量如下

# 调整文件elasticsearch java home
# bin/elasticsearch script file
export PATH=/opt/machtalk/elk/java/bin:$PATH
export JAVA_HOME=/opt/machtalk/elk/java/
ulimit -n 65536
ulimit -u 2048
# 下面的内存,官方建议是可用内存的一半
export ES_HEAP_SIZE=2g

# 调整系统limit
/etc/security/limits.conf
* - nproc 10240
* - nofile 65536

# for elk
# /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6=1
vm.max_map_count=262144
fs.file-max=1000000

启动

# 直接启动,也不要啥启动脚本了。
./elasticsearch
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""