es linux下啟動
阿新 • • 發佈:2021-01-20
技術標籤:eses linux下啟動
啟動es
建立使用者:
useradd user-es
授權:
chown -R user-es:user-es /home/elasticsearch/elasticsearch-7.10.2
切換到user-es 使用者進入bin啟動elasticsearch
su user-es
cd /home/elasticsearch/elasticsearch-7.10.2/bin
./elasticsearch
es後臺啟動
./elasticsearch -d
檢視是否啟動成功
curl -XGET http://192.168.0.65:9200
如果返回如下資訊則說明啟動成功
{
"name" : "node-1",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "Is6Z7juYSQa023h20qM2hQ",
"version" : {
"number" : "7.10.2",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "747e1cc71def077253878a59143c1f785afa92b9",
"build_date" : "2021-01-13T00:42:12.435326Z",
"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"
}