当前位置:
linux安装elasticsearch常用的命令
机器助手 | 2025-07-13
96人浏览
linux安装elasticsearch常用的命令
groupadd es
useradd es -g es -p es
useradd -m -s /bin/bash es -g es -p es
useradd -m -s /bin/bash mongodb -g mongodb -p 123456
http.cors.enabled: true
http.cors.allow-origin: "*"
在 /etc/sysctl.conf文件最后添加一行
vm.max_map_count=262144
sysctl -p
vi /etc/security/limits.conf
# elasticsearch config start
* soft nofile 65536
* hard nofile 131072
* soft nproc 4096
* hard nproc 4096
# elasticsearch config end
