获取到RPM包(以下链接永久有效)
链接:https://pan.baidu.com/s/1Dnb4qVW8OJeE6f5fJ5KWrg
提取码:29qv
在专用机上通过安全管理工具安装
安装完成后,会自动创建es用户和组,并且服务adq-es会注册到系统服务。
默认安装路径:/opt/adq_es/elasticsearch-7.7.0
默认端口:10225,治理平台中需要配置
启动服务
systemctl start adq-es
查看服务状态
systemctl status adq-es
如果不是running,则需要查看日志:/opt/adq_es/elasticsearch-7.7.0/logs/adq-es.log
ik分词和pinyin分词插件默认已经安装,直接使用即可。
创建XX平台需要的索引,将XXXXXX改为实际IP地址
curl-H"Content-Type: application/json"-XPUT http://XXXXXXX:10225/audaque_index -d'{"settings":{"refresh_interval":"5s","number_of_shards":1,"number_of_replicas":1,"analysis":{"analyzer":{"default":{"tokenizer":"ik_max_word"},"pinyin_analyzer":{"tokenizer":"my_pinyin"}},"tokenizer":{"my_pinyin":{"type":"pinyin","keep_first_letter":false,"keep_full_pinyin":false,"keep_joined_full_pinyin":true,"keep_none_chinese_in_joined_full_pinyin":true,"keep_none_chinese_in_first_letter":true,"none_chinese_pinyin_tokenize":false,"lowercase":true}}}},"mappings":{"properties":{"bizId":{"type":"keyword"},"bizName":{"type":"keyword"},"bizNameOrder":{"type":"text","fielddata":true,"analyzer":"pinyin_analyzer","fields":{"keyword":{"type":"keyword","ignore_above":256}}},"bizType":{"type":"integer"},"metadirId":{"type":"integer"},"hot":{"type":"integer"},"bizContent":{"type":"text","analyzer":"ik_max_word"},"bizMeg":{"type":"text","fields":{"suggest":{"type":"completion","analyzer":"ik_max_word","preserve_separators":true,"preserve_position_increments":true,"max_input_length":50}},"analyzer":"ik_max_word"},"dbSearchText":{"type":"keyword"},"updateUser":{"type":"keyword"},"createTime":{"type":"date","format":"YYYY-MM-dd HH:mm:ss"},"updateTime":{"type":"date","format":"YYYY-MM-dd HH:mm:ss"}}}}'
查看索引
curl http://XXXXXX:10225/_cat/indices?v
类似如下返回即可