服务器版本号: centos 7

查看自己服务器版本:

[elastic@ecs-d22a-0001 ~]$ uname -a
Linux ecs-d22a-0001 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[elastic@ecs-d22a-0001 ~]$ cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core)

ES版本号: 6.7

安装官方说明: https://www.elastic.co/guide/en/elasticsearch/reference/6.7/getting-started-install.html

相关教程: https://es.xiaoleilu.com/010_Intro/10_Installing_ES.html

问题:

  • 启动的时候碰到了can not run elasticsearch as root

新建一个非root用户,赋予权限,重新登录。
没有赋予权限会抛错的。

chown -R 用户名:用户名  文件(目录)名
chmod 755  文件(目录)名
  • 启动时碰到max virtual memory areas vm.max_map_count [65530] is too low, increase to at least
    切换到root用户:

sysctl -p





- 将安装目录下的`config/elastic.yml`中`network.host`改成具体的ip或`0.0.0.0`(全部用户可以访问,生产环境只开放给制定的ip)

- 中文搜索需要安装分词工具
 对应的分词工具版本选用说明:https://github.com/medcl/elasticsearch-analysis-ik
 对应的github地址:https://github.com/medcl/elasticsearch-analysis-ik/releases
 这里选用的是`6.7.1`

./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.7.1/elasticsearch-analysis-ik-6.7.1.zip


- 装插件**marvel**。
先安装 `x-pack`,`./bin/elasticserch-plugin install x-pack`

标签: none

评论已关闭