elasticsearch7.13.2 安装中文分词器

技术 置顶 精帖
0 716
peng49
peng49 2021-07-09 17:07:33
 

使用命令行直接安装

  1. sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.13.2/elasticsearch-analysis-ik-7.13.2.zip

执行结果如下,现在完成后输入 y 确认安装

  1. [vagrant@localhost ~]$ /usr/share/elasticsearch/bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.13.2/elasticsearch-analysis-ik-7.13.2.zip
  2. /usr/share/elasticsearch/bin/elasticsearch-env: line 87: /etc/sysconfig/elasticsearch: Permission denied
  3. [vagrant@localhost ~]$ sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.13.2/elasticsearch-analysis-ik-7.13.2.zip
  4. -> Installing https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.13.2/elasticsearch-analysis-ik-7.13.2.zip
  5. -> Downloading https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.13.2/elasticsearch-analysis-ik-7.13.2.zip
  6. [=================================================] 100%聽聽
  7. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  8. @ WARNING: plugin requires additional permissions @
  9. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  10. * java.net.SocketPermission * connect,resolve
  11. See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
  12. for descriptions of what these permissions allow and the associated risks.
  13. Continue with installation? [y/N]y
  14. -> Installed analysis-ik
  15. -> Please restart Elasticsearch to activate any plugins installed

重启es

sudo systemctl restart elasticsearch

参考链接
https://www.cnblogs.com/gwyy/p/12205257.html

回帖
登录
忘记密码?