关闭 ElasticSearch

1. 查找 ES 进程

  1. ps -ef | grep elastic

2. 杀掉 ES 进程

  1. kill -9 2382(进程号)

后台启动 ElasticSearch

  1. nohup /usr/local/es/elasticsearch-7.6.1/bin/elasticsearch 2>&1 &


浏览器输入: http://zjj101:9200/
如果返回下面的类似的字眼,说明服务启动成功

  1. {
  2. "name" : "node1",
  3. "cluster_name" : "zjj-es",
  4. "cluster_uuid" : "UJHVhECxRye0OxsAbShzRg",
  5. "version" : {
  6. "number" : "7.6.1",
  7. "build_flavor" : "default",
  8. "build_type" : "tar",
  9. "build_hash" : "aa751e09be0a5072e8570670309b1f12348f023b",
  10. "build_date" : "2020-02-29T00:15:25.529771Z",
  11. "build_snapshot" : false,
  12. "lucene_version" : "8.4.0",
  13. "minimum_wire_compatibility_version" : "6.8.0",
  14. "minimum_index_compatibility_version" : "6.0.0-beta1"
  15. },
  16. "tagline" : "You Know, for Search"
  17. }