关闭 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"
}