文章目錄
-
- 下載下傳es的包
- 解壓es包
- 配置檔案修改
- 啟動es
- 驗證
- 關閉es
下載下傳es的包
官網位址:https://www.elastic.co/cn/downloads/elasticsearch
解壓es包
tar -zxvf elasticsearch-7.10.0-linux-x86_64.tar.gz
配置檔案修改
進入解壓完畢後的包,檢視目錄,進入到config目錄下,修改
elasticsearch.yml
檔案
啟動es
按照上圖修改完畢後,切換到非root使用者,然後啟動es
bin/elasticsearch
指令行啟動
bin/elasticsearch -d
背景啟動
驗證
可以通路ip:9200
檢視傳回值,傳回下方傳回值就正确
{
"name": "node-1",
"cluster_name": "my-application",
"cluster_uuid": "9R_huW9yRcmGpH-fIcioAQ",
"version": {
"number": "7.10.0",
"build_flavor": "default",
"build_type": "tar",
"build_hash": "51e9d6f22758d0374a0f3f5c6e8f3a7997850f96",
"build_date": "2020-11-09T21:30:33.964949Z",
"build_snapshot": false,
"lucene_version": "8.7.0",
"minimum_wire_compatibility_version": "6.8.0",
"minimum_index_compatibility_version": "6.0.0-beta1"
},
"tagline": "You Know, for Search"
}
關閉es
指令行啟動的 退出時就關閉了
背景啟動的可以查詢程序 來關閉程序
ps -ef | grep elasticsearch
kill -9