主机名 |
外网IP |
内网IP |
配置 |
es-01 |
192.168.15.131 |
172.16.1.132 |
2核4G |
es-02 |
192.168.15.131 |
172.16.1.132 |
2核4G |
| systemctl disable --now firewalld |
| |
| sed -i 's#enforcing#disabled#g' /etc/selinux/config |
| |
| |
| setenforce 0 |
| [root@es-01 ~] |
| ... |
| 192.168.15.131 es-01 |
| 192.168.15.132 es-02 |
默认情况下,Elasticsearch使用mmapfs目录存储其索引,mmap计数的默认操作系统限制可能太低,这可能会导致内存不足,需要将其调至262144。编辑sysctl.conf 文件:
| [root@es-01 ~] |
| vm.max_map_count = 262144 |
| |
| |
| sysctl -p |
| vim /etc/security/limits.conf |
| |
| |
| root soft nofile 65536 |
| root hard nofile 65536 |
| * soft nofile 65536 |
| * hard nofile 65536 |
| * soft memlock unlimited |
| * hard memlock unlimited |
| yum install java-1.8.0* -y |
| |
| |
| java -version |