elasticsearch 启动、停止及更改密码
生活随笔
收集整理的這篇文章主要介紹了
elasticsearch 启动、停止及更改密码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1. 啟動 elasticsearch 命令:
[root@localhost bin]$ ./elasticsearch-7.6.2/bin/elasticsearch -d2. 停止 elasticsearch 命令:
首先需要利用JAVA的 jps 命令工具,查看到 Elasticserach的進程ID,再用 kill 命令殺進程
[tangjunhua@localhost bin]$ jps 30180 Jps 29417 Elasticsearch[tangjunhua@localhost bin]$ kill -9 294173. 更改密碼
首先,需要修改elasticsearch.yml的配置文件,增加?discovery.type: single-node,否則會報錯。
[tangjunhua@localhost bin]$ vim ../config/elasticsearch.ymlxpack.security.enabled: true discovery.type: single-node[tangjunhua@localhost bin]$ ./elasticsearch-setup-passwords interactive You will be prompted to enter passwords as the process progresses. Please confirm that you would like to continue [y/N]yEnter password for [elastic]: Reenter password for [elastic]: Enter password for [apm_system]: Reenter password for [apm_system]: Enter password for [kibana]: Reenter password for [kibana]:?
?
總結
以上是生活随笔為你收集整理的elasticsearch 启动、停止及更改密码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: V100服务器和T4服务器的性能指标
- 下一篇: centos 7 安装 npm 工具