centos7安装es 7.14

1. 下载:
 
2. es无法root运行,需要创建一个非root用户,例如我创建用户及组es
groupadd es
useradd es -g es -p es
 
3. 将下载好的es解压到es的home目录,并改变所属用户和组为es
mv elasticsearch-7.14.0 /home/es/
chown -R es:es /home/es/elasticsearch-7.14.0
 
4. 切换到es用户
su es
 
5. 启动es
./elasticsearch,可能失败,可以重启一次,会占用终端,如果守护运行的话,如下执行
./elasticsearch -d -p pid
 
6. 测试
curl -X GET "localhost:9200/?pretty"
{
"name" : "localhost.localdomain",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "FY5icTfwST2OI2tk2-5tFQ",
"version" : {
"number" : "7.14.0",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "dd5a0a2acaa2045ff9624f3729fc8a6f40835aa1",
"build_date" : "2021-07-29T20:49:32.864135063Z",
"build_snapshot" : false,
"lucene_version" : "8.9.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}

centos7安装es 7.14

上一篇:VScode---使用visual studio code遇到的错误


下一篇:Abp vNext 基础篇丨分层架构