1. 下载:https://www.elastic.co/downloads/elasticsearch

  2. 启动:bin/elasticsearch -d

  3. 查看:curl http://localhost:9200/

  4. 学习教程: get started

  5. 为了提高并发性能,修改一下系统设置:

    1. /etc/security/limits.conf

      1
      2
      3
      4
      
      soft nofile 65536
      hard nofile 131072
      soft nproc 2048
      hard nproc 4096
      

    2. /etc/security/limits.d/20-nproc.conf

    3. /etc/sysctl.conf

      1
      2
      
      vm.max_map_count=655360
      fs.file-max=655360
      

  6. sysctl -p使其生效