ES的安装
- 下载对应的安装包
- ES需要JDK的支持,安装前请确认JDK版本
java -version
3. 安装ES
rpm -ivh elasticsearch-5.5.2.rpm
4. 启动es
systemctl daemon-reload
systemctl enable elasticsearch.service
systemctl start elasticsearch.service
- 配置es
vim /etc/elasticsearch/elasticsearch.yml
6. 重启es
systemctl restart elasticsearch.service
- 验证是否成功
curl -XGET "192.168.111.18:9200"
ip | 应用 | 端口 |
---|---|---|
192.168.111.15 | GitLab | 80 |
192.168.111.15 | MySQL | 3306 |
192.168.111.16 | Redis | 6379(还未部署) |
192.168.111.17 | kafka | 9092(还未部署) |
192.168.111.18 | ES | 9200 |