In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Install the maven Packaging tool
Wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gztar-xf apache-maven-3.3.9-bin.tar.gzmv apache-maven-3.3.9 / usr/local/data/apache-mavenvim / etc/profileexport MAVEN_HOME=/usr/local/data/apache-mavenexport PATH=$PATH:$MAVEN_HOME/binsource / etc/profile
two。 Install ik participle
Git clone https://github.com/medcl/elasticsearch-analysis-ikcd elasticsearch-analysis-ik/mvn packagell / usr/local/data/elasticsearch-analysis-ik/target/releases/total 4400 RWMurray Rafael-1 root root 4502096 May 26 11:29 elasticsearch-analysis-ik-5.4.0.zip
Create a participle directory
Mkdir / usr/local/data/elasticsearch/plugins/ikcp target/releases/elasticsearch-analysis-ik-5.4.0.zip / usr/local/data/elasticsearch/plugins/ik/cd / usr/local/data/elasticsearch/plugins/ik & & unzip elasticsearch-analysis-ik-5.4.0.zipchown-R es.es / usr/local/data/elasticsearch
Test word segmentation
Http://172.16.230.198:9200/index/_analyze?analyzer=ik_max_word&text= × ×
3. Install the head plug-in
Yum-y install git npmgit clone git://github.com/mobz/elasticsearch-head.gitcd elasticsearch-headnpm installnpm install-g cnpm-- registry= modifies the head listening address to private network vim Gruntfile.js connect: {server: {options: {hostname:'172.16.230.198' Port: 9100, base:'. Keepalive: true}} launch the elasticsearch-head plug-in npm install grunt-cliln-s / usr/local/data/elasticsearch-head/node_modules/grunt/bin/grunt / usr/bin/grunt server & in the background
Problem encountered: the head plug-in cannot connect to the es cluster shows that the cluster health value is not connected
Modify the es listening address of head
Cd elasticsearch-headvim _ site/app.js
Modify the "http://localhost:9200" field to the native ES port and IP
Vim $ES_HOME$/config/elasticsearch.yml# adds the following field http.cors.enabled: truehttp.cors.allow-origin: "*"
Just restart es and head
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.