elasticsearch学习笔记1
安装elasticsearch
官网https://www.elastic.co/cn/downloads/elasticsearch下载对应版本
以mac为例,下载压缩包之后解压,点击bin目录下elasticsearch运行,然后在本地浏览器访问http://localhost:9200,若是出现如下界面,表示运行成功。
{
"name": "192.168.0.105",
"cluster_name": "elasticsearch",
"cluster_uuid": "hqR6_emnQPatGmx6xY93Ug",
"version": {
"number": "8.5.1",
"build_flavor": "default",
"build_type": "tar",
"build_hash": "c1310c45fc534583afe2c1c03046491efba2bba2",
"build_date": "2022-11-09T21:02:20.169855900Z",
"build_snapshot": false,
"lucene_version": "9.4.1",
"minimum_wire_compatibility_version": "7.17.0",
"minimum_index_compatibility_version": "7.0.0"
},
"tagline": "You Know, for Search"
}
出现的问题
在安装过程中出现过这个问题,浏览器请求之后页面无响应,终端报有如下错误,received plaintext http traffic on an https channel, closing connection Netty4HttpChanne
解决方案:
找到config/目录下面的elasticsearch.yml配置文件,把安全认证开关从原先的true都改成false即可