centos安装使用elasticsearch
时间:2020-08-20 10:31:19
收藏:0
阅读:83
- 安装jdk
- 检索yum包含java的列表 yum list java-1.8*
- 安装1.8.0的所有文件 yum install java-1.8.0-openjdk* -y
- 检查是否安装成功 java -version
- 安装es
- 更新yum的缓存 yum makecache
- 安装ES yum install elasticsearch
- 配置自启动 /sbin/chkconfig --add elasticsearch
- 启动ES服务器进程 systemctl start elasticsearch
- 运行测试 curl -X GET localhost:9200
- 配置通过IP访问ES
- vim /etc/elasticsearch/elasticsearch.yml
- network.host改为0.0.0.0
- http.port为访问端口
原文:https://www.cnblogs.com/godehi/p/13533563.html
评论(0)