本文共 1033 字,大约阅读时间需要 3 分钟。
tar -zxvf elasticsearch-7.4.2-linux-x86_64.tar.gz
mv elasticsearch-7.4.2 /usr/local/
cd /usr/local/elasticsearch-7.4.2/
mkdir data
cd config
vim elasticsearch.yml
vim jvm.options
useradd esuser
给es文件夹授权, 让新用户可以使用:
chown -R esuser /usr/local/elasticsearch-7.4.2
chown -R esuser:esuser /usr/local/elasticsearch-7.4.2
cd bin/
su esuser
./elasticsearch
su root
vim /etc/security/limits.conf
* soft nofile 65535* hard nofile 131072* soft nproc 2048* hard nproc 4096
vim /etc/sysctl.conf
vm.max_map_count=262145
sysctl -p
su esuser
./elasticsearch
./elasticsearch -d
chown -R esuser:esuser /usr/local/elasticsearch-7.4.2
转载地址:http://bhyk.baihongyu.com/