groupadd esgroup
useradd esroot -g esgroup -p 0p-0p-0p-
chown -R esroot:esgroup /usr/local/elasticsearch-7.17.4
su esroot
/usr/local/elasticsearch-7.17.4/bin/elasticsearch
/usr/local/elasticsearch-7.17.4/config/elasticsearch.yml
node.name: node-1
network.host: 0.0.0.0
#network.publish_host: 0.0.0.0
http.port: 9963
discovery.seed_hosts: ["127.0.0.1"]
cluster.initial_master_nodes: ["node-1"]
/usr/local/elasticsearch-7.17.4/config/jvm.options
cat /proc/meminfo|grep MemTotal
-Xms4g
-Xmx4g
/etc/sysctl.conf
vm.max_map_count = 262144
sysctl -p
sysctl -a|grep vm.max_map_count
/etc/environment
export ES_JAVA_HOME=/usr/local/elasticsearch-7.17.4/jdk
/etc/profile
export ES_JAVA_HOME=/usr/local/elasticsearch-7.17.4/jdk
source /etc/profile
/etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
#End
ulimit -Hn
ulimit -Sn