zoukankan      html  css  js  c++  java
  • Elasticsearch-5.0.0移植到ubuntu16.04

    旧环境:

    • windows10
    • elasticsearch-5.0.0(含elasticsearch-head插件)

    新环境:

    • ubuntu16.04

    由于环境换成了ubuntu,之前windows10环境下的ES需要迁移过来。

    步骤:

    • 把ES5整个目录拷贝到ubuntu16.04目录下。

    ES5.0版本的ES跟之前的版本最大的不同之处就是多了很多环境的校验,比如jdk,max-files等等。

    设置内核参数

    vi /etc/sysctl.conf
    # 增加下面的内容
    fs.file-max=65536
    vm.max_map_count=262144

    设置资源参数

    vi /etc/security/limits.conf
    # 修改
    * soft nofile 32768
    * hard nofile 65536

    修改进程数

    ulimit -u 2048

    配置上述参数后,重启系统。

    elasticsearch-head插件需要nodejs环境,需要安装nodejs。下载node-v6.9.3-linux-x64.tar.xz,解压。配置PATH环境变量。

    查看版本号:

    node -v

    安装npm:

    sudo apt-get install npm

    npm查看版本号:

    npm -v

    进入elasticsearch-head插件目录,安装grunt(若已有编译好的node_modules目录,则删除之):

    cd ~/elastic-5.0.0/elasticsearch-head
    npm install grunt-cli

    查看grunt版本:

    grunt -v

    构建、运行head插件:

    npm install

    初次构建时,可能到90%时会卡住。重新构建即可。

    启动es5:

    cd elasticsearch-5.0.0/bin
    ./elasticsearch

    运行head服务:

    cd elasticsearch-head
    grunt server

    访问url:http://localhost:9100/

     参考:http://www.cnblogs.com/xing901022/p/6030296.html

  • 相关阅读:
    SecureCRT和乱码
    iphone“连接到icloud是出错”的可能原因
    Tcpdump usage examples
    leetcode-pascal triangle I&&II
    How To Capture Packets with TCPDUMP?
    leetcode-two sum
    Linux统计某文件夹下文件、文件夹的个数
    leetcode-Minimum Depth of Binary Tree
    leetcode-Construct Binary Tree from Preorder and Inorder Traversal
    patch 修改有问题的
  • 原文地址:https://www.cnblogs.com/xuxy03/p/6246674.html
Copyright © 2011-2022 走看看