elasticsearch入门系列1----安装

版权声明: https://blog.csdn.net/xichengqc/article/details/90743807

相关安装文件位置:
链接:https://pan.baidu.com/s/1md2w6GJiXzsUKzBXJmJNBA
提取码:1dj7

  1. 将elasticseach安装包上传到虚拟机并解压
[root@localhost tempfile]# tar zxvf elasticsearch-5.5.2.tar.gz 
[root@localhost tempfile]# mv elasticsearch-5.5.2 /home/software/
  1. elasticsearch不支持root用户直接访问,所以我们先添加一个用户组和用户
[root@localhost bin]# groupadd elasticsearch
[root@localhost bin]# useradd es -g elasticsearch -p es
  1. 给新用户添加es访问权限
[root@localhost bin]# chown -R es /home/software/elasticsearch-5.5.2/
  1. 修改es启动占用的内存空间,默认2G,修改为512M即可
[root@localhost config]# vim jvm.options

-Xms512m
-Xmx512m
5. 切换到es用户,进入bin目录,启动elasticsearch

[root@localhost bin]# su es
[es@localhost bin]$ ./elasticsearch
  1. 本地访问
[root@localhost ~]# curl localhost:9200
{
  "name" : "Zulbm-k",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "gfOgDZ7OQIaXem6L5JwDvw",
  "version" : {
    "number" : "5.5.2",
    "build_hash" : "b2f0c09",
    "build_date" : "2017-08-14T12:33:14.154Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.0"
  },
  "tagline" : "You Know, for Search"
}

安装完成

猜你喜欢

转载自blog.csdn.net/xichengqc/article/details/90743807