Elasticsearch如何启动服务和关闭服务
Posted 程序员超时空
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Elasticsearch如何启动服务和关闭服务相关的知识,希望对你有一定的参考价值。
关闭ElasticSearch
1.查找ES进程
ps -ef | grep elastic
2.杀掉ES进程
kill -9 2382(进程号)
后台启动ElasticSearch
nohup /usr/local/es/elasticsearch-7.6.1/bin/elasticsearch 2>&1 &
浏览器输入: http://zjj101:9200/
如果返回下面的类似的字眼,说明服务启动成功
"name" : "node1",
"cluster_name" : "zjj-es",
"cluster_uuid" : "UJHVhECxRye0OxsAbShzRg",
"version" :
"number" : "7.6.1",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "aa751e09be0a5072e8570670309b1f12348f023b",
"build_date" : "2020-02-29T00:15:25.529771Z",
"build_snapshot" : false,
"lucene_version" : "8.4.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
,
"tagline" : "You Know, for Search"
以上是关于Elasticsearch如何启动服务和关闭服务的主要内容,如果未能解决你的问题,请参考以下文章