elasticsearch-installation

1. 安装Java JDK

移步 :sdfa

2. 下载elasticsearch

3. 解压安装installation

  • 3.1 由于elasticsearch不支持root用户启动(can not run elasticsearch as root),这里我们新建一个组和用户:

    groupadd ela
    useradd ela -g groupadd

  • 3.3 切换到root用户,把elasticsearch的所属组合用户给为ela

    su root
    chown ela:ela -R /usr/local/elasticsearch-5.1.2

  • 3.4 修改elasticsearch.yml 配置文件

    vim /usr/local/elasticsearch-5.1.2/config/elasticsearch.yml

4.访问

  • 4.1 浏览器访问:

  • 4.2 终端访问:

5.可能会出现的问题

  • 5.1 max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]

    修改/etc/security/limits.conf文件,添加或修改如下行:
    * hard nofile 65536
    * soft nofile 65536

  • 5.2 max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

    sudo sysctl -w vm.max_map_count=262144
    修改 /etc/sysctl.conf 文件,添加 “vm.max_map_count”设置

posted @ 2017-01-25 13:00  Thomas_188  阅读(210)  评论(0)    收藏  举报