• ElasticSearch : APT-GET安装方式


    Ubuntu下安装ES

    新建非ROOT管理员用户

    安装和配置JDK

    打开下面的地址

    https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html

    按照提示进行以下操作:

    wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

    sudo apt-get install apt-transport-https

    echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list

    sudo apt-get update && sudo apt-get install elasticsearch

    sudo /bin/systemctl daemon-reload

    sudo /bin/systemctl enable elasticsearch.service

    启动服务

    sudo systemctl start elasticsearch.service

    停止服务

    sudo systemctl stop elasticsearch.service

    输入以下命令查看服务是否启动成功

    sudo systemctl status elasticsearch.service

    如果找不到JAVA,编辑
    /usr/share/elasticsearch/bin/elasticsearch-env
    加JAVA_HOME

    安装IK分词器
    sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.1.2/elasticsearch-analysis-ik-6.1.2.zip
    安装完成之后重启ES

  • 相关阅读:
    day05 集合
    day05 判断敏感字符
    day05 None类型
    day05 字典
    day04元组
    day04列表
    HDFS配额管理(实战)
    hive数据库的哪些函数操作是否走MR
    oracle 裸设备划分 --centos6.5
    redis3.0.7集群部署手册
  • 原文地址:https://www.cnblogs.com/cccy0/p/10113538.html
Copyright © 2020-2023  润新知