elasticsearch

grep"^[a-z]"elasticsearch.yml

vim/etc/security/limits.conf

*softnofile65536

*hardnofile131072

*softnproc2048

*hardnproc4096

vim/etc/security/limits.d/90-nproc.conf

*softnproc4096

vim/etc/sysctl.conf

vm.max_map_count=655360

sysctl-p

elasticsearch.yml中配置

bootstrap.system_call_filter为false

#开启跨域访问

http.cors.enabled:true

http.cors.allow-origin:"*"

#关闭x-pack认证

xpack.security.enabled:false

bootstrap.memory_lock:false

bootstrap.system_call_filter:false

/etc/init.d/elasticsearch

serviceelasticsearchstart

nohupgruntserver&

elasticsearch-pluginsinstallx-pack

curl-XPUT-uelastic:changeme'http://localhost:9200/_xpack/license'-d@license.json

相关推荐