修改/etc/security/limits.conf 文件,增加配置,用户退出后重
新登录生效
注意,带星号一起复制,星号表示此配置对所有用户生效
* soft nofile 65536 #不一定是 65536,后续
有报错根据报错提示修改
* hard nofile 65536
* soft nproc 4096
* hard nproc 4096
修改/etc/sysctl.conf 文件,增加配置 vm.max_map_count=262144
#可先修改为 262144,后续如有报错根据报错信息修改
vi /etc/sysctl.conf
执行命令 sysctl -p 生效
(3) 运行一键安装脚本 esinstall.sh
执行脚本前需确认 9200、9300 端口未被占用
bash esinstall.sh