安装elasticsearch
1.下载并安装GPG key
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
2.添加yum仓库
vim /etc/yum.repos.d/elasticsearch.repo
加入下面的代码
从官网复制的
[elasticsearch-7.x] name=Elasticsearch repository for 7.x packages baseurl=https://artifacts.elastic.co/packages/7.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md
3.安装elasticsearch
yum install elasticsearch
4.配置elasticsearch
cd etc/elasticsearch/ vim elasticsearch.yml
5.启动elasticsearch
systemctl start elasticsearch
如果内存不足请修改启动参数jvm.options文件下的修改成512m
6.测试
localhost:9200
出现上图,安装成功
elasticsearch入门到精通二(索引)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)