1.本实验在三台阿里云ECS服务器上安装elasticsearch,首先要实现三台机器内网互通,参考:https://blog.csdn.net/weixin_38875344/article/details/89146937。
实例名 |
内网IP |
外网IP |
||
node-1 |
master |
1.1.1.1 |
1.1.0.0 |
主节点 |
node-2 |
slave1 |
2.2.2.2 |
2.2.0.0 |
|
node-3 |
slave2 |
3.3.3.3 |
3.3.0.0 |
2.在 https://www.elastic.co/cn/downloads/past-releases/网站下载所需的版本。本实验所用的为7.1.0版本。
3.在三台服务器上分别安装jdk8。
4.elasticsearch不允许以root权限来运行。所以需要创建一个非root用户,以非root用户来起es。在三台机器上分别创建新用户。