linux安装es

1.解压 tar -zxvf elasticsearch-7.7.1-linux-x86_64.tar.gz
移动  mv elasticsearch-7.7.1 /usr/local/
cd /usr/local/
创建新用户  useradd esuser
赋权 chown -R esuser:esuser /usr/local/elasticsearch-7.7.1/

主配置文件修改 vim elasticsearch.yml

node.name: node-1
cluster.initial_master_nodes: ["node-1"]

network.host: 0.0.0.0

 

查看端口 netstat -tunlp|grep 9200

开启

su esuser
cd /usr/local/elasticsearch-7.7.1/bin/

./elasticsearch -d
问题:

vim /etc/security/limits.conf //保存后需要重新登录

* soft nofile 65536
* hard nofile 131072
* soft nproc 4096
* hard nproc 4096

976 vim /etc/sysctl.conf

vm.max_map_count=262145

sysctl -p//保存后刷新配置


发表评论