标签:es5.x部署时注意事项
1.yum 部署rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
cd /etc/yum.repos.d/
vim elasticsearch.repo
[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
yum install elasticsearch -y
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.2.rpm
sha1sum elasticsearch-5.2.2.rpm
rpm --install elasticsearch-5.2.2.rpm
#因为es集群中程序会启用大量线程,所以进程瓶颈不能太少了
sed -i ‘s#1024#2048#g‘ /etc/security/limits.d/90-nproc.conf
#根据生产情况硬件调试
vm.max_map_count=262144
cat >> /etc/security/limits.conf <<EOF
* soft nofile 65536
* hard nofile 131072
* soft nproc 4096
* hard nproc 4096
elasticsearch soft memlock unlimited
elasticsearch hard memlock unlimited
EOF
#es安装后默认是没有配置的
vim /etc/elasticsearch.yml
cluster.name: es-cluster01
node.name: es-node01
path.data: /data/es/data
path.logs: /data/es/logs
bootstrap.memory_lock: true #可锁也可不锁
network.host: 11.0.0.51
http.port: 9200
http.cors.enabled: true
http.cors.allow-origin: "*"
bootstrap.system_call_filter: false #centos6不支持项,需要false掉,不然es起不来,他会一直去检测bootstrap,然后报错
#这是在因为Centos6不支持SecComp,而ES5.2.*默认bootstrap.system_call_filter为true进行检测,所以导致检测失败,失败后直接导致ES不能启动。
elasticsearch5.* yum或者rpm部署 应该注意事项
标签:es5.x部署时注意事项
原文地址:http://blog.51cto.com/linux1991/2084315