bin/elasticsearch -d
后台启动

文章插图
5、重置 elastic 账户密码
[es@appbasic elasticsearch-8.4.3]$ bin/elasticsearch-reset-password --username elastic -iwarning: ignoring JAVA_HOME=/usr/local/jdk8; using bundled JDKWARNING: Group of file [/usr/local/es/elasticsearch-8.4.3/config/users] used to be [root], but now is [es]WARNING: Group of file [/usr/local/es/elasticsearch-8.4.3/config/users_roles] used to be [root], but now is [es]This tool will reset the password of the [elastic] user.You will be prompted to enter the password.Please confirm that you would like to continue [y/N]yEnter password for [elastic]:Re-enter password for [elastic]:Password for the [elastic] user successfully reset.[es@appbasic elasticsearch-8.4.3]$
6、访问 es
文章插图
出现如下信息,说明访问成功 。
"name": "es-node01","cluster_name": "es-cluster","cluster_uuid": "OJsQ_w1ZTKWepM-u8-U-tg","version": {"number": "8.4.3","build_flavor": "default","build_type": "tar","build_hash": "42f05b9372a9a4a470db3b52817899b99a76ee73","build_date": "2022-10-04T07:17:24.662462378Z","build_snapshot": false,"lucene_version": "9.3.0","minimum_wire_compatibility_version": "7.17.0","minimum_index_compatibility_version": "7.0.0"},"tagline": "You Know, for Search"}
7、kibana连接到es7.1 修改kibana配置vim /usr/local/kibana/kibana-8.4.3/config/kibana.yml
server.port: 5601server.host: "192.168.121.138"# elasticsearch.hosts: ["https://192.168.121.138:9200"] 和 es用户民密码都不用配置
注意:
如果上方的配置中增加了 如下配置 ( elasticsearch.username
和 elasticsearch.password
) 或者 elasticsearch.hosts
) 则可能出现如下异常`[2022-10-30T18:31:29.858+08:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. self signed certificate in certificate chain`
解决方案:
执行如下命令bin/kibana-setup --enrollment-token <enrollment-token>
<enrollment-token>
通过如下命令获取:bin/elasticsearch-create-enrollment-token --scope kibana
参考链接:https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-stack-security.html#stack-start-with-security
7.2 启动kibana
bin/kibana

文章插图
从上图中可以 访问地址为
http://192.168.121.138:5601/?code=634917
7.3 配置kibana

文章插图
点击蓝色的按钮,就开始配置 elastic 了 。
8、参考链接
- https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html
- https://www.elastic.co/guide/en/elasticsearch/reference/current/system-config.html
- https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-stack-security.html#stack-start-with-security
经验总结扩展阅读
- 哪些星座女恋爱大过天
- 硒砂瓜为什么不让种了
- 2023年9月23日是讨债吉日吗 2023年9月23日讨债行吗
- 2023年9月23日销货好不好 2023年9月23日适合销货吗
- 光遇9.8草帽先祖位置在哪
- 原神在弹弹菇上连续弹跳五次怎么完成
- 原神帮助76个兰那罗位置在哪
- 新鲜的松茸怎样储藏
- 电视剧山川和海洋里夜渺夏蕊宁结局在一起了吗?
- 顾燕帧表白在第几集?