Elasticsearch6 安装

2019-10-18  本文已影响0人  长孙俊明

创建一个分组

groupadd esmayikt 
useradd es -g esmayikt -p 123456
cp /root/elasticsearch-6.4.3.tar.gz /home/es/
cd /home/es
chown -R es:esmayikt elasticsearch-6.4.3.tar.gz
su es
tar -zxvf elasticsearch-6.4.3.tar.gz
chown -R es:esmayikt  elasticsearch-6.4.3
su root
# [报错]bootstrap checks failed max virtual memory areas vm.max_map_count [65530] is
vi /etc/sysctl.conf
vm.max_map_count=655360
sysctl -p
#[报错]max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
vi /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
第二种方法:
 ulimit -Hn 65536

su es
cd /home/es/elasticsearch-6.4.3/bin
./elasticsearch

启动

cd /home/es/elasticsearch-6.4.3/bin
./elasticsearch

停止


访问地址

http://120.24.62.147:9200/

image.png
上一篇下一篇

猜你喜欢

热点阅读